|
|
@@ -1,39 +1,75 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:id="@+id/root"
|
|
|
- android:layout_width="15dp"
|
|
|
- android:layout_height="18dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_margin="@dimen/divider_line_width">
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@drawable/item_rv_loto_bg"
|
|
|
- android:gravity="center"
|
|
|
- android:orientation="vertical">
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_container"
|
|
|
+ android:layout_width="10dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@mipmap/red_stroke_bg"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintDimensionRatio="9:12"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_icon"
|
|
|
- android:layout_width="10dp"
|
|
|
- android:layout_height="10dp" />
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintDimensionRatio="1"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintVertical_bias="0.2"
|
|
|
+ app:layout_constraintWidth_percent="0.85" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_name"
|
|
|
style="@style/CommonTextView"
|
|
|
android:textColor="@color/lock_status_locked"
|
|
|
- android:textSize="4dp" />
|
|
|
- </LinearLayout>
|
|
|
+ android:textSize="4dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintVertical_bias="0.85"
|
|
|
+ android:autoSizeTextType="uniform"
|
|
|
+ android:autoSizeStepGranularity="1dp"
|
|
|
+ android:autoSizeMinTextSize="2dp"
|
|
|
+ android:autoSizeMaxTextSize="20dp"/>
|
|
|
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_cover"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@drawable/item_rv_loto_cover_bg"
|
|
|
- android:visibility="gone">
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/rl_cover"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/common_bg_black_30"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
- <TextView
|
|
|
- style="@style/CommonTextView"
|
|
|
- android:layout_centerInParent="true"
|
|
|
- android:text="√" />
|
|
|
- </RelativeLayout>
|
|
|
-</RelativeLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_select"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:text="√"
|
|
|
+ android:textSize="8dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:autoSizeTextType="uniform"
|
|
|
+ android:autoSizeStepGranularity="1dp"
|
|
|
+ android:autoSizeMinTextSize="1dp"
|
|
|
+ android:autoSizeMaxTextSize="20dp"/>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|