|
|
@@ -8,6 +8,8 @@
|
|
|
<variable
|
|
|
name="bean"
|
|
|
type="com.datarecovery.master.module.homepage.FunctionBean" />
|
|
|
+
|
|
|
+ <import type="com.atmob.common.ui.SizeUtil" />
|
|
|
</data>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
@@ -16,11 +18,12 @@
|
|
|
android:paddingVertical="6dp">
|
|
|
|
|
|
<ImageView
|
|
|
- imageRes="@{bean.functionIcon}"
|
|
|
android:id="@+id/iv_function_img"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
+ imageRes="@{bean.functionIcon}"
|
|
|
+ android:layout_width="@{(float)SizeUtil.getScreenWidth() * 0.1222222222222222f, default=wrap_content}"
|
|
|
+ android:layout_height="0dp"
|
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_function_name"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
@@ -28,11 +31,11 @@
|
|
|
tools:src="@drawable/icon_home_page_file_recovery" />
|
|
|
|
|
|
<TextView
|
|
|
- android:text="@{bean.functionName}"
|
|
|
android:id="@+id/tv_function_name"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="4dp"
|
|
|
+ android:text="@{bean.functionName}"
|
|
|
android:textColor="#202020"
|
|
|
android:textSize="13sp"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|