Parcourir la source

[공통][Bug] 일부 레이아웃 수정

hyodong.min il y a 7 ans
Parent
commit
47971708e7

+ 0 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/manager/ActionBarManager.java

@@ -437,7 +437,6 @@ public class ActionBarManager {
       for (int i = 0; i < len; ++i) {
         (categoryMainTab.getChildAt(i)).setOnClickListener(v -> {
           int selectIndex = categoryMainTab.indexOfChild(v);
-          //Log.e("APP#  ActionBarManager | init", "|" + selectIndex);
           if (null != newBuilder.categoryListener) {
             newBuilder.categoryListener.onClick(actionBar, selectIndex);
           }

+ 16 - 10
app/src/main/res/layout/activity_main.xml

@@ -79,9 +79,10 @@
 
         <RadioButton
           android:id="@+id/tab_first_category"
-          android:layout_width="wrap_content"
+          android:layout_width="56dp"
           android:layout_height="wrap_content"
-          android:layout_marginEnd="19dp"
+          android:layout_marginStart="2dp"
+          android:layout_marginEnd="2dp"
           android:background="@null"
           android:button="@null"
           android:drawableTop="@drawable/category_main_first_tab"
@@ -95,9 +96,10 @@
 
         <RadioButton
           android:id="@+id/tab_second_category"
-          android:layout_width="wrap_content"
+          android:layout_width="56dp"
           android:layout_height="wrap_content"
-          android:layout_marginEnd="19dp"
+          android:layout_marginStart="2dp"
+          android:layout_marginEnd="2dp"
           android:background="@null"
           android:button="@null"
           android:drawableTop="@drawable/category_main_second_tab"
@@ -111,9 +113,10 @@
 
         <RadioButton
           android:id="@+id/tab_third_category"
-          android:layout_width="wrap_content"
+          android:layout_width="56dp"
           android:layout_height="wrap_content"
-          android:layout_marginEnd="19dp"
+          android:layout_marginStart="2dp"
+          android:layout_marginEnd="2dp"
           android:background="@null"
           android:button="@null"
           android:drawableTop="@drawable/category_main_third_tab"
@@ -127,9 +130,10 @@
 
         <RadioButton
           android:id="@+id/tab_fourth_category"
-          android:layout_width="wrap_content"
+          android:layout_width="56dp"
           android:layout_height="wrap_content"
-          android:layout_marginEnd="19dp"
+          android:layout_marginStart="2dp"
+          android:layout_marginEnd="2dp"
           android:background="@null"
           android:button="@null"
           android:drawableTop="@drawable/category_main_fourth_tab"
@@ -143,8 +147,10 @@
 
         <RadioButton
           android:id="@+id/tab_fifth_category"
-          android:layout_width="wrap_content"
+          android:layout_width="56dp"
           android:layout_height="wrap_content"
+          android:layout_marginStart="2dp"
+          android:layout_marginEnd="2dp"
           android:background="@null"
           android:button="@null"
           android:drawableTop="@drawable/category_main_fifth_tab"
@@ -162,7 +168,7 @@
         android:layout_height="1dp"
         android:background="@color/CE5E5E5"
         app:layout_constraintBottom_toBottomOf="parent"
-      />
+        />
     </android.support.constraint.ConstraintLayout>
   </android.support.design.widget.AppBarLayout>
 

+ 23 - 21
app/src/main/res/layout/fragment_all_menu.xml

@@ -8,21 +8,23 @@
   <LinearLayout
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:layout_marginTop="75dp"
-    android:layout_marginBottom="26dp"
+    android:layout_marginTop="55dp"
+    android:layout_marginBottom="16dp"
+    android:gravity="center"
     android:orientation="vertical">
 
     <LinearLayout
-      android:layout_width="match_parent"
+      android:layout_width="wrap_content"
       android:layout_height="wrap_content"
+      android:layout_marginBottom="6dp"
       android:orientation="vertical">
 
       <TextView
         android:id="@+id/text_view_first_category"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:gravity="center_horizontal"
-        android:lineSpacingExtra="8sp"
+        android:padding="10dp"
         android:text="@string/contents_category1"
         android:textColor="@color/C000000"
         android:textSize="21sp"
@@ -30,17 +32,17 @@
     </LinearLayout>
 
     <LinearLayout
-      android:layout_width="match_parent"
+      android:layout_width="wrap_content"
       android:layout_height="wrap_content"
+      android:layout_marginBottom="6dp"
       android:orientation="vertical">
 
       <TextView
         android:id="@+id/text_view_second_category"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_marginTop="26dp"
         android:gravity="center_horizontal"
-        android:lineSpacingExtra="8sp"
+        android:padding="10dp"
         android:text="@string/contents_category2"
         android:textColor="@color/C000000"
         android:textSize="21sp"
@@ -48,17 +50,17 @@
     </LinearLayout>
 
     <LinearLayout
-      android:layout_width="match_parent"
+      android:layout_width="wrap_content"
       android:layout_height="wrap_content"
-      android:layout_marginTop="26dp"
+      android:layout_marginBottom="6dp"
       android:orientation="vertical">
 
       <TextView
         android:id="@+id/text_view_third_category"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:gravity="center_horizontal"
-        android:lineSpacingExtra="8sp"
+        android:padding="10dp"
         android:text="@string/contents_category3"
         android:textColor="@color/C000000"
         android:textSize="21sp"
@@ -66,17 +68,17 @@
     </LinearLayout>
 
     <LinearLayout
-      android:layout_width="match_parent"
+      android:layout_width="wrap_content"
       android:layout_height="wrap_content"
-      android:layout_marginTop="26dp"
+      android:layout_marginBottom="6dp"
       android:orientation="vertical">
 
       <TextView
         android:id="@+id/text_view_fourth_category"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:gravity="center_horizontal"
-        android:lineSpacingExtra="8sp"
+        android:padding="10dp"
         android:text="@string/contents_category4"
         android:textColor="@color/C000000"
         android:textSize="21sp"
@@ -84,17 +86,17 @@
     </LinearLayout>
 
     <LinearLayout
-      android:layout_width="match_parent"
+      android:layout_width="wrap_content"
       android:layout_height="wrap_content"
-      android:layout_marginTop="26dp"
+      android:layout_marginBottom="6dp"
       android:orientation="vertical">
 
       <TextView
         android:id="@+id/text_view_fifth_category"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:gravity="center_horizontal"
-        android:lineSpacingExtra="8sp"
+        android:padding="10dp"
         android:text="@string/contents_category5"
         android:textColor="@color/C000000"
         android:textSize="21sp"

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

@@ -20,7 +20,6 @@
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginStart="25dp"
-      android:layout_marginBottom="3dp"
       app:layout_constraintBottom_toBottomOf="parent"
       app:layout_constraintStart_toStartOf="parent"
       app:layout_constraintTop_toTopOf="parent"

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

@@ -19,7 +19,6 @@
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginStart="25dp"
-      android:layout_marginBottom="3dp"
       app:layout_constraintBottom_toBottomOf="parent"
       app:layout_constraintStart_toStartOf="parent"
       app:layout_constraintTop_toTopOf="parent"

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

@@ -20,7 +20,6 @@
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginStart="25dp"
-      android:layout_marginBottom="3dp"
       app:layout_constraintBottom_toBottomOf="parent"
       app:layout_constraintStart_toStartOf="parent"
       app:layout_constraintTop_toTopOf="parent"

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

@@ -20,7 +20,6 @@
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginStart="25dp"
-      android:layout_marginBottom="3dp"
       app:layout_constraintBottom_toBottomOf="parent"
       app:layout_constraintStart_toStartOf="parent"
       app:layout_constraintTop_toTopOf="parent"