|
|
@@ -0,0 +1,476 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:background="#F5F5F5">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <!-- 商品分类网格 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:background="#FFFFFF"
|
|
|
+ android:padding="12dp">
|
|
|
+
|
|
|
+ <!-- 第一行 - 排行榜和小编推荐 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="16dp">
|
|
|
+
|
|
|
+ <!-- 排行榜 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_category_ranking"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="80dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:background="#FFFFFF"
|
|
|
+ android:padding="12dp">
|
|
|
+
|
|
|
+ <!-- 左侧文字区域 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="start|center_vertical">
|
|
|
+
|
|
|
+ <!-- 皇冠图标+排行榜 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="👑"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_marginEnd="4dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="排行榜"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="每日更新"
|
|
|
+ android:textColor="#999999"
|
|
|
+ android:textSize="11sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 右侧商品图片 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="28dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:src="@mipmap/lishi1"
|
|
|
+ android:layout_marginEnd="4dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="28dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:src="@mipmap/linshi2" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 分割线 -->
|
|
|
+ <View
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:background="#E0E0E0" />
|
|
|
+
|
|
|
+ <!-- 小编推荐 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_category_recommend"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="80dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:background="#FFFFFF"
|
|
|
+ android:padding="12dp">
|
|
|
+
|
|
|
+ <!-- 左侧文字区域 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="start|center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="小编推荐"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="精选好货"
|
|
|
+ android:textColor="#999999"
|
|
|
+ android:textSize="11sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 右侧商品图片 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="28dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:src="@mipmap/linshi3"
|
|
|
+ android:layout_marginEnd="4dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="28dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:background="#9C27B0"
|
|
|
+ android:src="@mipmap/linshi4"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 第二行商品网格 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="16dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="高端生鲜"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="经典畅饮"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="全家口粮"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="鲜活生活"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="培育蔬菜"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 第三行商品网格 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="大牌之选"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="深度当头"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="智慧必备"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="1003/国潮"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ app:riv_oval="true"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="传奇蓝白钻"
|
|
|
+ android:textColor="#333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 底部广告横幅 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="300dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:background="#1A237E"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+<!-- <TextView-->
|
|
|
+<!-- android:layout_width="wrap_content"-->
|
|
|
+<!-- android:layout_height="wrap_content"-->
|
|
|
+<!-- android:text="为热爱共欢聚"-->
|
|
|
+<!-- android:textColor="#FFFFFF"-->
|
|
|
+<!-- android:textSize="18sp"-->
|
|
|
+<!-- android:textStyle="bold" />-->
|
|
|
+
|
|
|
+<!-- <TextView-->
|
|
|
+<!-- android:layout_width="wrap_content"-->
|
|
|
+<!-- android:layout_height="wrap_content"-->
|
|
|
+<!-- android:layout_marginTop="4dp"-->
|
|
|
+<!-- android:text="领券满59减10"-->
|
|
|
+<!-- android:textColor="#FFD700"-->
|
|
|
+<!-- android:textSize="14sp" />-->
|
|
|
+ <com.yunbao.common.custom.RatioRoundImageView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:riv_corner_radius="10dp"
|
|
|
+ android:src="@mipmap/pijiu1"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</ScrollView>
|