Browse Source

1.优化代码

王鹏鹏 2 years ago
parent
commit
3470bee8b8
1 changed files with 5 additions and 9 deletions
  1. 5 9
      game/src/main/res/layout/activity_play_game.xml

+ 5 - 9
game/src/main/res/layout/activity_play_game.xml

@@ -66,23 +66,19 @@
                 android:layout_height="wrap_content"
                 android:layout_marginStart="@dimen/divider_14px"
                 android:minHeight="@dimen/divider_246px"
+                android:background="@mipmap/icon_game_dialog"
                 app:layout_constraintBottom_toTopOf="@+id/loadingImage"
                 app:layout_constraintStart_toStartOf="parent">
 
-                <androidx.appcompat.widget.AppCompatImageView
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:background="@mipmap/icon_game_dialog"
-                    android:scaleType="fitXY" />
-
                 <androidx.appcompat.widget.AppCompatTextView
                     android:id="@+id/tvIntroduce"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_gravity="center_horizontal"
-                    android:layout_marginStart="@dimen/divider_33px"
-                    android:layout_marginTop="@dimen/divider_28px"
-                    android:layout_marginEnd="@dimen/divider_31px"
+                    android:paddingStart="@dimen/divider_33px"
+                    android:paddingTop="@dimen/divider_28px"
+                    android:paddingEnd="@dimen/divider_31px"
+                    android:paddingBottom="@dimen/divider_80px"
                     android:fontFamily="@font/lcb"
                     android:includeFontPadding="false"
                     android:textColor="@color/color_FFA94A09"