|
|
@@ -4,6 +4,13 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
tools:ignore="ResourceName">
|
|
|
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="data"
|
|
|
+ type="com.yingyangfly.game.entity.GameResultBean" />
|
|
|
+ </data>
|
|
|
+
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
@@ -47,7 +54,8 @@
|
|
|
android:layout_marginStart="@dimen/divider_26px"
|
|
|
android:layout_marginTop="@dimen/divider_32px"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:loadHeadImg="@{data.gameCoverImage}" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tvGameName"
|
|
|
@@ -55,6 +63,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="@dimen/divider_26px"
|
|
|
android:layout_marginTop="@dimen/divider_45px"
|
|
|
+ android:text="@{data.gameName}"
|
|
|
android:textColor="@color/color_FFFF6F6F"
|
|
|
android:textSize="@dimen/divider_28px"
|
|
|
android:textStyle="bold"
|
|
|
@@ -62,18 +71,6 @@
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
tools:text="抓小羊" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tvGameType"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/divider_26px"
|
|
|
- android:layout_marginTop="@dimen/divider_5px"
|
|
|
- android:textColor="@color/color_FF5A5A5A"
|
|
|
- android:textSize="@dimen/divider_24px"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/gameImage"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tvGameName"
|
|
|
- tools:text="按顺序记忆" />
|
|
|
-
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/tvGameLevel"
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -103,6 +100,8 @@
|
|
|
app:layout_constraintTop_toBottomOf="@+id/backLayout">
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|