浏览代码

[修改]UI优化

zeki 5 年之前
父节点
当前提交
54e16a0329

+ 1 - 0
app/src/main/java/com/sheep/gamegroup/module/webview/fragment/FgtWebX5.java

@@ -199,6 +199,7 @@ public class FgtWebX5 extends BaseFgtWebX5 {
         webSetting.setAllowFileAccess(true);
         webSetting.setAppCacheEnabled(true);
         webSetting.setDatabaseEnabled(true);
+        webSetting.setCacheMode(WebSettings.LOAD_DEFAULT);
         webSetting.setPluginState(WebSettings.PluginState.ON_DEMAND);
         /*webSetting.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
         webSetting.setLoadWithOverviewMode(true);

+ 4 - 1
app/src/main/res/layout/act_setting.xml

@@ -83,7 +83,10 @@
 
         </LinearLayout>
 
-        <View style="@style/style_item_line" android:layout_height="@dimen/content_padding" />
+        <View android:layout_width="match_parent"
+              android:minHeight="1px"
+              android:background="@color/white_light"
+              android:layout_height="@dimen/content_padding" />
 
         <LinearLayout
             android:id="@+id/version_layout"

+ 2 - 1
app/src/main/res/layout/fgt_personacenter_item_top.xml

@@ -32,6 +32,7 @@
                         android:id="@+id/img_baseactivity_title"
                         android:layout_width="40dp"
                         android:layout_height="40dp"
+                        android:layout_marginStart="4dp"
                         android:layout_centerVertical="true"
                         android:layout_alignParentStart="true"
                         android:layout_alignParentBottom="true"
@@ -63,7 +64,7 @@
                         android:layout_alignParentBottom="true"
                         android:foreground="@drawable/selector_forground_circle_white"
                         tools:ignore="UnusedAttribute"
-                        android:layout_marginEnd="16dp"
+                        android:layout_marginEnd="12dp"
                         android:background="@color/translate"
                         android:src="@mipmap/setting"/>
 

+ 1 - 1
app/src/main/res/layout/fragment_login_welcome.xml

@@ -41,7 +41,7 @@
             android:id="@+id/imageView3"
             android:layout_width="76dp"
             android:layout_height="76dp"
-            android:layout_marginTop="48dp"
+            android:layout_marginTop="112dp"
             android:src="@drawable/logo"
             android:layout_marginBottom="12dp"
             app:layout_constraintEnd_toEndOf="@+id/tv_app_name"

+ 3 - 3
app/src/main/res/layout/fragment_sign_in.xml

@@ -14,7 +14,7 @@
             android:textColor="@color/white"
             android:textSize="19dp"
             android:text="登录小绵羊"
-            android:layout_marginTop="36dp"
+            android:layout_marginTop="42dp"
             app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintEnd_toEndOf="@+id/cardView"
             app:layout_constraintStart_toStartOf="@+id/cardView"/>
@@ -276,8 +276,8 @@
                     style="@style/login_theme_round_button"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:layout_marginTop="@dimen/content_padding_24"
-                    android:layout_marginBottom="36dp"
+                    android:layout_marginTop="16dp"
+                    android:layout_marginBottom="20dp"
                     android:layout_marginStart="26dp"
                     android:layout_marginEnd="26dp"
                     android:text="登录"

+ 4 - 4
app/src/main/res/layout/fragment_sign_up.xml

@@ -13,7 +13,7 @@
             android:textColor="@color/white"
             android:textSize="19dp"
             android:text="手机号注册"
-            android:layout_marginTop="36dp"
+            android:layout_marginTop="42dp"
             app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintEnd_toEndOf="@+id/imageView3"
             app:layout_constraintStart_toStartOf="@+id/imageView3"/>
@@ -92,7 +92,7 @@
                         android:orientation="horizontal"
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp">
+                        android:layout_marginTop="21dp">
 
                     <EditText
                             android:id="@+id/password_box"
@@ -129,7 +129,7 @@
                         android:layout_height="wrap_content"
                         android:layout_marginStart="24dp"
                         android:layout_marginEnd="24dp"
-                        android:layout_marginTop="28dp">
+                        android:layout_marginTop="21dp">
 
                     <EditText
                             android:id="@+id/password_box2"
@@ -228,7 +228,7 @@
                     style="@style/login_theme_round_button"
                     android:layout_marginStart="24dp"
                     android:layout_marginEnd="24dp"
-                    android:layout_marginTop="54dp"
+                    android:layout_marginTop="48dp"
                     android:text="注册"/>
 
             <LinearLayout

+ 1 - 1
app/src/main/res/layout/xpersion_info_act_layout.xml

@@ -163,7 +163,7 @@
         <View
                 android:layout_width="match_parent"
                 android:layout_height="20dp"
-                android:background="@color/bg_line"/>
+                android:background="#f5f5f5"/>
 
         <LinearLayout
                 android:layout_width="match_parent"