| 对比新文件 |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <layout xmlns:app="http://schemas.android.com/apk/res-auto"> |
| | | <data> |
| | | <variable |
| | | name="data" |
| | | type="com.doumee.keyCabinet.bean.KeyCabinetBean" /> |
| | | </data> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | xmlns:android="http://schemas.android.com/apk/res/android" |
| | | android:id="@+id/cl_root" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:padding="9dp" |
| | | android:background="@{data.isSelected?@drawable/shape_r6_cabinet_sel_bg:@drawable/shape_r6_cabinet_unsel_bg}"> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="@{data.code}" |
| | | android:textColor="@{data.text1Color}" |
| | | android:textSize="24sp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent"/> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv2" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="@{data.carCode}" |
| | | android:textColor="@{data.text2Color}" |
| | | android:textSize="24sp" |
| | | app:layout_constraintTop_toBottomOf="@+id/tv1" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:layout_marginTop="7dp"/> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | </layout> |