|
|
@@ -13,8 +13,8 @@
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
android:id="@+id/gameLayout"
|
|
|
- android:layout_width="@dimen/divider_184px"
|
|
|
- android:layout_height="@dimen/divider_229px"
|
|
|
+ android:layout_width="@dimen/divider_200px"
|
|
|
+ android:layout_height="@dimen/divider_245px"
|
|
|
android:layout_marginTop="@dimen/divider_32px"
|
|
|
app:cardCornerRadius="@dimen/divider_20px">
|
|
|
|
|
|
@@ -23,62 +23,56 @@
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/gameImage"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:layout_height="@dimen/divider_200px"
|
|
|
app:isCircle="@{false}"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
app:loadHeadImg="@{data.gameCoverImage}" />
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatTextView
|
|
|
- android:id="@+id/tvTitle"
|
|
|
- android:layout_width="@dimen/divider_133px"
|
|
|
- android:layout_height="@dimen/divider_34px"
|
|
|
- android:layout_marginTop="@dimen/divider_9px"
|
|
|
- android:background="@drawable/bg_train_title"
|
|
|
+ <TextView
|
|
|
+ android:layout_width="@dimen/divider_108px"
|
|
|
+ android:layout_height="@dimen/divider_46px"
|
|
|
+ android:background="@mipmap/bg_game_type"
|
|
|
android:gravity="center"
|
|
|
android:text="@{data.gameType}"
|
|
|
- android:textColor="@color/color_FF416AFF"
|
|
|
- android:textSize="@dimen/divider_18px"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- tools:text="@string/accumulated_training_duration" />
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatTextView
|
|
|
- android:id="@+id/tvTimes"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/divider_34px"
|
|
|
- android:layout_marginTop="@dimen/divider_9px"
|
|
|
- android:background="@drawable/bg_train_times"
|
|
|
- android:gravity="center"
|
|
|
- android:text='@{"累计训练"+data.currentLevel+"次"}'
|
|
|
android:textColor="@android:color/white"
|
|
|
- android:textSize="@dimen/divider_18px"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tvName"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ android:textSize="@dimen/divider_14px"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- tools:text="@string/accumulated_training_duration" />
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatTextView
|
|
|
- android:id="@+id/tvName"
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/divider_45px"
|
|
|
- android:layout_marginTop="@dimen/divider_9px"
|
|
|
- android:background="@color/color_FF416AFF"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@drawable/bg_workbenches_buttom_game"
|
|
|
android:gravity="center"
|
|
|
- android:text="@{data.gameName}"
|
|
|
- android:textColor="@android:color/white"
|
|
|
- android:textSize="@dimen/divider_24px"
|
|
|
- android:textStyle="bold"
|
|
|
+ android:orientation="horizontal"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- tools:text="@string/accumulated_training_duration" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/gameImage">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@{data.gameName}"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="@dimen/divider_24px"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/divider_16px"
|
|
|
+ android:background="@drawable/bg_workbenches_level"
|
|
|
+ android:text='@{data.currentLevel+"-"+data.totalNum}'
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="@dimen/divider_14px" />
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|