feat(fragment): 食材采集页改用 ChipGroup 选择净材并新增列表空布局
This commit is contained in:
@@ -4,10 +4,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginHorizontal="14dp"
|
||||
android:layout_marginVertical="14dp"
|
||||
android:background="@drawable/bg_item_search"
|
||||
android:paddingHorizontal="15dp"
|
||||
android:paddingVertical="10dp">
|
||||
android:layout_marginVertical="14dp">
|
||||
|
||||
<!-- 食材名称,选中状态通过 CheckedTextView 的 checked 驱动背景/文字色变化 -->
|
||||
<CheckedTextView
|
||||
@@ -21,6 +18,7 @@
|
||||
android:textColor="@color/color_item_search"
|
||||
android:textSize="28sp"
|
||||
android:textStyle="bold"
|
||||
android:background="@drawable/bg_item_search"
|
||||
tools:text="土豆丝" />
|
||||
|
||||
<!-- 当前选中的净材种类,小字显示,无数据时隐藏 -->
|
||||
@@ -30,6 +28,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center|bottom"
|
||||
android:layout_marginBottom="3dp"
|
||||
android:textColor="@color/black999"
|
||||
android:textSize="18sp"
|
||||
android:visibility="gone"
|
||||
|
||||
Reference in New Issue
Block a user