|
|
@@ -1,11 +1,109 @@
|
|
|
<?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">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/bg_game_introduction">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/backLayout"
|
|
|
+ android:layout_width="@dimen/divider_148px"
|
|
|
+ android:layout_height="@dimen/divider_58px"
|
|
|
+ android:layout_marginStart="@dimen/divider_32px"
|
|
|
+ android:layout_marginTop="@dimen/divider_32px"
|
|
|
+ android:background="@drawable/bg_game_back"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/game_back"
|
|
|
+ android:textColor="@color/color_FF4A75FF"
|
|
|
+ android:textSize="@dimen/divider_28px"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:id="@+id/gamelayout"
|
|
|
+ android:layout_width="@dimen/divider_665px"
|
|
|
+ android:layout_height="@dimen/divider_451px"
|
|
|
+ android:layout_marginStart="@dimen/divider_112px"
|
|
|
+ android:layout_marginTop="@dimen/divider_71px"
|
|
|
+ android:theme="@style/Theme.MaterialComponents.NoActionBar"
|
|
|
+ app:cardBackgroundColor="@android:color/white"
|
|
|
+ app:cardCornerRadius="@dimen/divider_28px"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/backLayout">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/gameImage"
|
|
|
+ android:layout_width="@dimen/divider_106px"
|
|
|
+ android:layout_height="@dimen/divider_106px"
|
|
|
+ android:layout_marginStart="@dimen/divider_26px"
|
|
|
+ android:layout_marginTop="@dimen/divider_32px"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvGameName"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/divider_26px"
|
|
|
+ android:layout_marginTop="@dimen/divider_45px"
|
|
|
+ android:textColor="@color/color_FFFF6F6F"
|
|
|
+ android:textSize="@dimen/divider_28px"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/gameImage"
|
|
|
+ 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"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginStart="@dimen/divider_26px"
|
|
|
+ android:layout_marginTop="@dimen/divider_20px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_28px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_36px"
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/gameImage" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
+
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:id="@+id/gameStatuslayout"
|
|
|
+ android:layout_width="@dimen/divider_294px"
|
|
|
+ android:layout_height="@dimen/divider_451px"
|
|
|
+ android:layout_marginStart="@dimen/divider_32px"
|
|
|
+ android:layout_marginTop="@dimen/divider_71px"
|
|
|
+ android:theme="@style/Theme.MaterialComponents.NoActionBar"
|
|
|
+ app:cardBackgroundColor="@android:color/white"
|
|
|
+ app:cardCornerRadius="@dimen/divider_28px"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/gamelayout"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/backLayout">
|
|
|
+
|
|
|
+
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|