|
@@ -11,63 +11,88 @@
|
|
|
type="com.yingyang.workbenches.entity.Record" />
|
|
|
</data>
|
|
|
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
android:id="@+id/gameLayout"
|
|
|
- android:layout_width="@dimen/divider_200px"
|
|
|
- android:layout_height="@dimen/divider_245px"
|
|
|
+ android:layout_width="@dimen/divider_195px"
|
|
|
+ android:layout_height="@dimen/divider_289px"
|
|
|
android:layout_marginTop="@dimen/divider_32px"
|
|
|
- app:cardCornerRadius="@dimen/divider_20px">
|
|
|
+ android:theme="@style/Theme.MaterialComponents.NoActionBar"
|
|
|
+ app:cardBackgroundColor="@color/color_FFFFB841"
|
|
|
+ app:cardCornerRadius="@dimen/divider_38px">
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ <FrameLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatImageView
|
|
|
- android:id="@+id/gameImage"
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/divider_200px"
|
|
|
- android:scaleType="centerCrop"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:id="@+id/cardImage"
|
|
|
+ android:layout_width="@dimen/divider_185px"
|
|
|
+ android:layout_height="@dimen/divider_185px"
|
|
|
+ android:layout_marginTop="@dimen/divider_5px"
|
|
|
+ android:theme="@style/Theme.MaterialComponents.NoActionBar"
|
|
|
+ app:cardCornerRadius="@dimen/divider_36px"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:strokeColor="@android:color/white"
|
|
|
+ app:strokeWidth="@dimen/divider_4px">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/gameImage"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:scaleType="centerCrop" />
|
|
|
+
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginStart="@dimen/divider_5px"
|
|
|
+ android:layout_marginTop="@dimen/divider_10px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_5px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_10px"
|
|
|
+ android:background="@drawable/bg_free_train_buttom_game"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/cardImage">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@{data.gameName}"
|
|
|
+ android:textColor="@color/color_FFA02C"
|
|
|
+ android:textSize="@dimen/divider_22px"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tvType"
|
|
|
- android:layout_width="@dimen/divider_108px"
|
|
|
+ android:layout_width="@dimen/divider_105px"
|
|
|
android:layout_height="@dimen/divider_46px"
|
|
|
- android:background="@mipmap/bg_game_type"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="@dimen/divider_21px"
|
|
|
+ android:background="@mipmap/icon_free_train_top_game"
|
|
|
android:gravity="center"
|
|
|
android:text="@{data.gameType}"
|
|
|
android:textColor="@android:color/white"
|
|
|
android:textSize="@dimen/divider_18px"
|
|
|
android:textStyle="bold"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:background="@drawable/bg_workbenches_buttom_game"
|
|
|
- android:gravity="center"
|
|
|
- android:orientation="horizontal"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/gameImage">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@{data.gameName}"
|
|
|
- android:textColor="@android:color/white"
|
|
|
- android:textSize="@dimen/divider_22px"
|
|
|
- android:textStyle="bold" />
|
|
|
-
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
+ </FrameLayout>
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
</layout>
|