404 lines
16 KiB
XML
404 lines
16 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:background="@color/color_f8f8f8">
|
||
|
|
||
|
<com.tairui.industrial_operation.widget.statusbar.StatusBarHeightView
|
||
|
android:id="@+id/statusbar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/bottomLayout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="68dp"
|
||
|
android:background="@color/white"
|
||
|
android:orientation="horizontal"
|
||
|
android:paddingLeft="16dp"
|
||
|
android:paddingRight="16dp"
|
||
|
app:layout_constraintBottom_toBottomOf="parent">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/btnHome"
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="20dp"
|
||
|
android:layout_height="20dp"
|
||
|
android:src="@mipmap/ic_home" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="4dp"
|
||
|
android:text="首页"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="10sp" />
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginLeft="12dp"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="20dp"
|
||
|
android:layout_height="20dp"
|
||
|
android:src="@mipmap/ic_service" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="4dp"
|
||
|
android:text="客服"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="10sp" />
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginLeft="12dp"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="20dp"
|
||
|
android:layout_height="20dp"
|
||
|
android:src="@mipmap/ic_shopcart_black" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="4dp"
|
||
|
android:text="购物车"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="10sp" />
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:gravity="center_vertical"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_weight="1"
|
||
|
android:background="@drawable/bg_container_light_green_left_raduis_30"
|
||
|
android:gravity="center"
|
||
|
android:text="加入购物车"
|
||
|
android:textColor="@color/color_txt_green"
|
||
|
android:textSize="16sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_weight="1"
|
||
|
android:background="@drawable/bg_container_green_right_raduis_30"
|
||
|
android:gravity="center"
|
||
|
android:text="立即购买"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="16sp" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<androidx.core.widget.NestedScrollView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:background="@color/color_f8f8f8"
|
||
|
app:layout_constraintBottom_toTopOf="@id/bottomLayout"
|
||
|
app:layout_constraintTop_toTopOf="parent">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/img"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:src="@mipmap/pic_goods_detail_1"
|
||
|
app:layout_constraintDimensionRatio="1:1"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
<FrameLayout
|
||
|
android:layout_width="24dp"
|
||
|
android:layout_height="24dp"
|
||
|
android:layout_margin="16dp"
|
||
|
android:background="@drawable/bg_gray_round"
|
||
|
app:layout_constraintBottom_toBottomOf="@id/img"
|
||
|
app:layout_constraintLeft_toLeftOf="@id/img">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="16dp"
|
||
|
android:layout_height="16dp"
|
||
|
android:layout_gravity="center"
|
||
|
android:src="@mipmap/ic_voice" />
|
||
|
</FrameLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_margin="16dp"
|
||
|
android:orientation="horizontal"
|
||
|
app:layout_constraintBottom_toBottomOf="@id/img"
|
||
|
app:layout_constraintLeft_toLeftOf="parent"
|
||
|
app:layout_constraintRight_toRightOf="parent">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="视频"
|
||
|
android:textColor="@color/color_txt_green"
|
||
|
android:textSize="16sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="12dp"
|
||
|
android:text="图片"
|
||
|
android:textColor="@color/color_txt_label"
|
||
|
android:textSize="16sp" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<FrameLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:background="@mipmap/bg_goods_detail_barcode"
|
||
|
app:layout_constraintDimensionRatio="390:86"
|
||
|
app:layout_constraintTop_toBottomOf="@id/img">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_gravity="left"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:gravity="center_vertical"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="当前价格:"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="14sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:text="¥2.90"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="26sp"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_gravity="right"
|
||
|
android:layout_marginRight="16dp"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="商品溯源码"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="14sp"
|
||
|
android:textStyle="italic|bold" />
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="46dp"
|
||
|
android:layout_height="46dp"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:src="@mipmap/pic_goods_detail_2" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</FrameLayout>
|
||
|
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_margin="16dp"
|
||
|
android:text="耿马普罗旺斯西红柿沙瓤番茄甄选番茄西红柿"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="18sp"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:background="@drawable/bg_container_gray_border_raduis_5"
|
||
|
android:paddingLeft="4dp"
|
||
|
android:paddingTop="2dp"
|
||
|
android:paddingRight="4dp"
|
||
|
android:paddingBottom="2dp"
|
||
|
android:text="已售 5154"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="12sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="12dp"
|
||
|
android:background="@drawable/bg_container_gray_border_raduis_5"
|
||
|
android:paddingLeft="4dp"
|
||
|
android:paddingTop="2dp"
|
||
|
android:paddingRight="4dp"
|
||
|
android:paddingBottom="2dp"
|
||
|
android:text="地标性产品"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="12sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="12dp"
|
||
|
android:background="@drawable/bg_container_gray_border_raduis_5"
|
||
|
android:paddingLeft="4dp"
|
||
|
android:paddingTop="2dp"
|
||
|
android:paddingRight="4dp"
|
||
|
android:paddingBottom="2dp"
|
||
|
android:text="应季果蔬"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="12sp" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:layout_marginTop="12dp"
|
||
|
android:layout_marginRight="16dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/baozhang"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:src="@mipmap/pic_goods_detail_3"
|
||
|
app:layout_constraintDimensionRatio="358:192"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:layout_marginTop="12dp"
|
||
|
android:layout_marginRight="16dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:src="@mipmap/pic_goods_detail_4"
|
||
|
app:layout_constraintDimensionRatio="358:471"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:layout_marginTop="12dp"
|
||
|
android:layout_marginRight="16dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/canshu"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:src="@mipmap/pic_goods_detail_5"
|
||
|
app:layout_constraintDimensionRatio="358:142"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:layout_marginTop="12dp"
|
||
|
android:text="图文详情"
|
||
|
android:textColor="@color/color_txt_black"
|
||
|
android:textSize="16sp"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="12dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="0dp"
|
||
|
android:src="@mipmap/pic_goods_detail_6"
|
||
|
app:layout_constraintDimensionRatio="358:1678"
|
||
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
</androidx.core.widget.NestedScrollView>
|
||
|
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/btnBack"
|
||
|
android:layout_width="32dp"
|
||
|
android:layout_height="32dp"
|
||
|
android:layout_marginLeft="16dp"
|
||
|
android:padding="4dp"
|
||
|
android:src="@mipmap/ic_back_black"
|
||
|
app:layout_constraintLeft_toLeftOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@id/statusbar" />
|
||
|
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|