Bläddra i källkod

fitsystemwindows

hanjing 7 år sedan
förälder
incheckning
128cb79035

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

@@ -4,13 +4,14 @@
     android:layout_height="match_parent"
     android:gravity="center_horizontal"
     android:orientation="vertical"
+    android:fitsSystemWindows="true"
     android:padding="@dimen/content_padding_24">
 
     <ImageView
         android:id="@+id/avatar_view"
         android:layout_width="80dp"
         android:layout_height="80dp"
-        android:layout_marginTop="30dp"
+        android:layout_marginTop="50dp"
         android:src="@mipmap/icon_unread" />
 
     <EditText

+ 3 - 2
app/src/main/res/layout/fragment_find_account.xml

@@ -3,8 +3,9 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:orientation="vertical"
-    android:paddingTop="@dimen/content_padding_24"
-    android:paddingLeft="@dimen/content_padding_13"
+    android:fitsSystemWindows="true"
+    android:paddingTop="50dp"
+    android:paddingLeft="@dimen/content_padding_24"
     android:paddingBottom="@dimen/content_padding_24"
     android:paddingRight="@dimen/content_padding_24">
 

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

@@ -2,6 +2,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:fitsSystemWindows="true"
     android:padding="@dimen/content_padding_24">
 
 
@@ -9,7 +10,7 @@
         android:id="@+id/for_account_pwd_container"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginTop="20dp"
+        android:layout_marginTop="50dp"
         android:visibility="gone">
 
         <EditText
@@ -50,7 +51,7 @@
 
     <RelativeLayout
         android:id="@+id/for_phone_container"
-        android:layout_marginTop="20dp"
+        android:layout_marginTop="50dp"
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
 

+ 3 - 2
app/src/main/res/layout/fragment_sign_up.xml

@@ -2,13 +2,14 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:orientation="vertical"
+    android:fitsSystemWindows="true"
     android:padding="@dimen/content_padding_24">
 
     <LinearLayout
         android:id="@+id/for_account_container"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginTop="20dp"
+        android:layout_marginTop="50dp"
         android:visibility="gone"
         android:orientation="vertical">
 
@@ -72,7 +73,7 @@
 
     <RelativeLayout
         android:id="@+id/for_phone_container"
-        android:layout_marginTop="20dp"
+        android:layout_marginTop="50dp"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_below="@+id/top_bar">

+ 1 - 0
app/src/main/res/layout/fragment_valid_captcha.xml

@@ -4,6 +4,7 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:padding="@dimen/content_padding_36"
+    android:fitsSystemWindows="true"
     android:gravity="center_horizontal"
     android:orientation="vertical">