Browse Source

[공통][Bug] 레이아웃 정리

hyodong.min 7 years ago
parent
commit
603c25daee

+ 15 - 12
app/src/main/res/layout/activity_setting.xml

@@ -5,24 +5,27 @@
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
-  android:orientation="vertical"
   android:background="@color/CFFFFFF"
+  android:orientation="vertical"
   >
 
-  <android.support.v4.widget.NestedScrollView
+
+  <android.support.v7.widget.RecyclerView
+    android:id="@+id/recycler_view_setting"
     android:layout_width="match_parent"
-    android:layout_height="wrap_content">
+    android:layout_height="wrap_content"
+    />
 
-    <android.support.v7.widget.RecyclerView
-      android:id="@+id/recycler_view_setting"
-      android:layout_width="match_parent"
-      android:layout_height="match_parent"
-      />
-  </android.support.v4.widget.NestedScrollView>
+  <LinearLayout
+    android:layout_width="match_parent"
+    android:layout_height="0dp"
+    android:clickable="true"
+    android:focusable="true"
+    android:layout_weight="1"/>
 
   <LinearLayout
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
+    android:layout_height="wrap_content"
     android:gravity="bottom"
     android:orientation="vertical">
 
@@ -47,8 +50,8 @@
       <TextView
         android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:layout_weight="2"
         android:layout_marginEnd="50dp"
+        android:layout_weight="2"
         android:lineSpacingExtra="4sp"
         android:paddingTop="12dp"
         android:paddingBottom="12dp"
@@ -60,11 +63,11 @@
       <TextView
         android:layout_width="0dp"
         android:layout_height="wrap_content"
+        android:layout_marginStart="50dp"
         android:layout_weight="2"
         android:lineSpacingExtra="4sp"
         android:paddingTop="12dp"
         android:paddingBottom="12dp"
-        android:layout_marginStart="50dp"
         android:text="@string/setting_version_information_message"
         android:textAlignment="textEnd"
         android:textColor="@color/C666666"

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

@@ -39,7 +39,7 @@
       <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:gravity="bottom"
+        android:gravity="center"
         android:orientation="horizontal"
         android:paddingStart="20dp"
         android:paddingTop="10dp"
@@ -69,7 +69,7 @@
       <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:gravity="bottom"
+        android:gravity="center"
         android:orientation="horizontal"
         android:paddingStart="20dp"
         android:paddingTop="10dp"
@@ -102,7 +102,7 @@
       <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:gravity="bottom"
+        android:gravity="center"
         android:orientation="horizontal"
         android:paddingStart="20dp"
         android:paddingTop="10dp"
@@ -140,7 +140,7 @@
       <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:gravity="bottom"
+        android:gravity="center"
         android:orientation="horizontal"
         android:paddingStart="20dp"
         android:paddingTop="10dp"