Просмотр исходного кода

修改 手机登录,背景色兼容性问题

liujiangyao лет назад: 8
Родитель
Сommit
89e71251ec
2 измененных файлов с 22 добавлено и 12 удалено
  1. 21 12
      app/src/main/res/layout/bind_phone_number_act_layout.xml
  2. 1 0
      app/src/main/res/values/common.xml

+ 21 - 12
app/src/main/res/layout/bind_phone_number_act_layout.xml

@@ -2,7 +2,8 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical">
+    android:orientation="vertical"
+    android:background="@color/bg_gray">
 
 
     <include
     <include
         layout="@layout/title"/>
         layout="@layout/title"/>
@@ -13,17 +14,25 @@
         <LinearLayout
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
-            android:orientation="vertical">
-            <ImageView
-                android:id="@+id/phone_iv"
-                android:layout_width="140dp"
-                android:layout_height="140dp"
-                android:layout_gravity="center_horizontal"
-                android:layout_marginLeft="100dp"
-                android:layout_marginRight="100dp"
-                android:src="@mipmap/no_bind_phone"
-                android:layout_marginTop="35dp"
-                android:layout_marginBottom="5dp"/>
+            android:orientation="vertical"
+            android:background="@color/white">
+            <LinearLayout
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:orientation="vertical">
+                <ImageView
+                    android:id="@+id/phone_iv"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:minWidth="@dimen/content_padding_140"
+                    android:minHeight="@dimen/content_padding_140"
+                    android:layout_gravity="center_horizontal"
+                    android:layout_marginLeft="100dp"
+                    android:layout_marginRight="100dp"
+                    android:src="@mipmap/no_bind_phone"
+                    android:layout_marginTop="35dp"
+                    android:layout_marginBottom="5dp"/>
+            </LinearLayout>
 
 
             <TextView
             <TextView
                 android:id="@+id/phone_tip_tv"
                 android:id="@+id/phone_tip_tv"

+ 1 - 0
app/src/main/res/values/common.xml

@@ -82,6 +82,7 @@
     <dimen name="content_padding_65">65dp</dimen>
     <dimen name="content_padding_65">65dp</dimen>
     <dimen name="content_padding_80">80dp</dimen>
     <dimen name="content_padding_80">80dp</dimen>
     <dimen name="content_padding_100">100dp</dimen>
     <dimen name="content_padding_100">100dp</dimen>
+    <dimen name="content_padding_140">140dp</dimen>
 
 
 
 
     <!--下面的tagid用于设置tag使用-->
     <!--下面的tagid用于设置tag使用-->