| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?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>
- <androidx.cardview.widget.CardView
- android:id="@+id/gameLayout"
- android:layout_width="@dimen/divider_184px"
- android:layout_height="@dimen/divider_249px"
- android:layout_marginTop="@dimen/divider_32px"
- app:cardCornerRadius="@dimen/divider_20px">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@mipmap/icon_game"
- 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"
- 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"
- app:layout_constraintRight_toRightOf="parent"
- tools:text="@string/accumulated_training_duration" />
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tvName"
- android:layout_width="match_parent"
- android:layout_height="@dimen/divider_45px"
- android:layout_marginTop="@dimen/divider_9px"
- android:background="@color/color_FF416AFF"
- android:gravity="center"
- android:text="@{data.gameName}"
- android:textColor="@android:color/white"
- android:textSize="@dimen/divider_24px"
- android:textStyle="bold"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- tools:text="@string/accumulated_training_duration" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.cardview.widget.CardView>
- </layout>
|