| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" |
| | | <RelativeLayout |
| | | xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:tools="http://schemas.android.com/tools" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_marginBottom="@dimen/small_radios" |
| | | android:background="@color/white" |
| | | android:elevation="@dimen/small_radios" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/recycler" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/bg_border_gray_corner" |
| | | android:paddingBottom="@dimen/frame_margin_lr" |
| | | android:overScrollMode="never" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | app:layout_constraintLeft_toLeftOf="parent" |
| | | app:layout_constraintRight_toRightOf="parent" |
| | | app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" |
| | | app:spanCount="4" |
| | | tools:listitem="@layout/item_classify" |
| | | tools:itemCount="8"> |
| | | </androidx.recyclerview.widget.RecyclerView> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.5dp" |
| | | android:background="@color/gray" |
| | | app:layout_constraintTop_toBottomOf="@id/recycler" /> |
| | | <TextView |
| | | android:id="@+id/text_cancel" |
| | | android:layout_width="0dp" |
| | | android:layout_height="40dp" |
| | | android:text="取消" |
| | | android:gravity="center" |
| | | app:layout_constraintRight_toLeftOf="@id/text_confirm" |
| | | app:layout_constraintTop_toBottomOf="@id/recycler" |
| | | app:layout_constraintLeft_toLeftOf="parent" /> |
| | | <TextView |
| | | android:id="@+id/text_confirm" |
| | | android:layout_width="0dp" |
| | | android:layout_height="50dp" |
| | | android:text="确定" |
| | | android:gravity="center" |
| | | app:layout_constraintTop_toBottomOf="@id/recycler" |
| | | app:layout_constraintLeft_toRightOf="@id/text_cancel" |
| | | app:layout_constraintRight_toRightOf="parent"/> |
| | | <View |
| | | android:layout_width="0.5dp" |
| | | android:layout_height="0dp" |
| | | android:background="@color/gray" |
| | | app:layout_constraintTop_toTopOf="@id/text_cancel" |
| | | app:layout_constraintBottom_toBottomOf="@id/text_cancel" |
| | | app:layout_constraintLeft_toRightOf="@id/text_cancel"/> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | </RelativeLayout> |