1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?xml version="1.0" encoding="utf-8"?>
- <layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- tools:ignore="ResourceName">
- <data>
- <variable
- name="data"
- type="com.yingyang.workbenches.entity.Record" />
- </data>
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/gameLayout"
- android:layout_width="@dimen/divider_195px"
- android:layout_height="@dimen/divider_289px"
- android:layout_marginTop="@dimen/divider_32px"
- android:theme="@style/Theme.MaterialComponents.NoActionBar"
- app:cardBackgroundColor="@color/color_FFFFB841"
- app:cardCornerRadius="@dimen/divider_38px">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_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_105px"
- android:layout_height="@dimen/divider_46px"
- 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_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </FrameLayout>
- </com.google.android.material.card.MaterialCardView>
- </layout>
|