Ver Fonte

更新界面

HapeLee há 1 ano atrás
pai
commit
afb7ec8ddb
1 ficheiros alterados com 42 adições e 48 exclusões
  1. 42 48
      app/src/main/res/layout/dialog_update.xml

+ 42 - 48
app/src/main/res/layout/dialog_update.xml

@@ -50,88 +50,82 @@
     <LinearLayout
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:gravity="center_vertical"
         android:orientation="horizontal"
         android:orientation="horizontal"
-        android:layout_marginVertical="8dp">
+        android:gravity="bottom"
+        android:paddingBottom="4dp">
 
 
-        <com.google.android.material.card.MaterialCardView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            app:strokeWidth="0dp"
-            app:cardBackgroundColor="?attr/colorSecondaryContainer">
-            <TextView
-                android:id="@+id/tv_current_version"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:textAppearance="?attr/textAppearanceBodyMedium"
-                android:padding="8dp"
-                android:text="@string/text" />
-        </com.google.android.material.card.MaterialCardView>
-
-        <View
+        <TextView
+            android:id="@+id/tv_current_version"
             android:layout_width="0dp"
             android:layout_width="0dp"
-            android:layout_height="1dp"
-            android:background="?attr/colorSecondary"
-            android:layout_marginHorizontal="8dp"
-            android:layout_weight="1"/>
-
-        <com.google.android.material.card.MaterialCardView
-            android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
-            app:strokeWidth="0dp"
-            app:cardBackgroundColor="?attr/colorPrimaryContainer">
-            <TextView
-                android:id="@+id/tv_version"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:textAppearance="?attr/textAppearanceBodyMedium"
-                android:padding="8dp"
-                android:text="@string/text" />
-        </com.google.android.material.card.MaterialCardView>
-    </LinearLayout>
-
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:gravity="center_vertical"
-        android:orientation="horizontal">
+            android:layout_weight="1"
+            android:text="@string/text"
+            android:textAppearance="?attr/textAppearanceBodyMedium"
+            android:textSize="16sp"
+            android:textStyle="bold" />
 
 
         <com.google.android.material.card.MaterialCardView
         <com.google.android.material.card.MaterialCardView
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             app:cardBackgroundColor="?attr/colorPrimaryContainer"
             app:cardBackgroundColor="?attr/colorPrimaryContainer"
+            app:cardCornerRadius="8dp"
             app:strokeWidth="0dp">
             app:strokeWidth="0dp">
 
 
             <TextView
             <TextView
                 android:id="@+id/tv_abi"
                 android:id="@+id/tv_abi"
                 android:layout_width="match_parent"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_height="wrap_content"
-                android:padding="8dp"
+                android:paddingHorizontal="8dp"
+                android:paddingVertical="2dp"
+                android:textSize="12sp"
+                android:textStyle="bold"
                 android:text="ABI: arm64-v8a"
                 android:text="ABI: arm64-v8a"
                 android:textAppearance="?attr/textAppearanceBodySmall"
                 android:textAppearance="?attr/textAppearanceBodySmall"
                 android:textColor="?attr/colorOnSurfaceVariant" />
                 android:textColor="?attr/colorOnSurfaceVariant" />
         </com.google.android.material.card.MaterialCardView>
         </com.google.android.material.card.MaterialCardView>
+    </LinearLayout>
+
+    <View
+        android:layout_width="match_parent"
+        android:layout_height="2dp"
+        android:layout_marginVertical="2dp"
+        android:background="?attr/colorPrimaryContainer" />
 
 
-        <View
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:gravity="bottom"
+        android:orientation="horizontal">
+
+        <TextView
+            android:id="@+id/tv_version"
             android:layout_width="0dp"
             android:layout_width="0dp"
-            android:layout_height="1dp"
-            android:layout_marginHorizontal="8dp"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:layout_weight="1"
-            android:background="?attr/colorSecondary" />
+            android:text="@string/text"
+            android:textColor="?attr/colorPrimary"
+            android:textSize="24sp"
+            android:textStyle="bold" />
 
 
         <com.google.android.material.card.MaterialCardView
         <com.google.android.material.card.MaterialCardView
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
-            app:cardBackgroundColor="?attr/colorPrimaryContainer"
+            app:cardBackgroundColor="?attr/colorTertiaryContainer"
+
+            app:cardCornerRadius="8dp"
             app:strokeWidth="0dp">
             app:strokeWidth="0dp">
 
 
             <TextView
             <TextView
                 android:id="@+id/tv_variable"
                 android:id="@+id/tv_variable"
                 android:layout_width="wrap_content"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_height="wrap_content"
-                android:padding="8dp"
+                android:paddingHorizontal="8dp"
+                android:paddingVertical="4dp"
+                android:textColor="?attr/colorTertiary"
+                android:textStyle="bold"
                 android:text="@string/text"
                 android:text="@string/text"
                 android:textAppearance="?attr/textAppearanceBodyMedium" />
                 android:textAppearance="?attr/textAppearanceBodyMedium" />
+
         </com.google.android.material.card.MaterialCardView>
         </com.google.android.material.card.MaterialCardView>
     </LinearLayout>
     </LinearLayout>