瀏覽代碼

[FAQ][Common] FAQ arrow 아이콘 간격 일정하게 수정 (Relative layout으로 변경)

Hasemi 7 年之前
父節點
當前提交
61e768b912

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/fragment/faq/FAQExpandableListViewAdapter.java

@@ -90,7 +90,7 @@ public class FAQExpandableListViewAdapter extends RecyclerView.Adapter<RecyclerV
 
     private void changed() {
       layoutAnswer.setVisibility(layoutAnswer.getVisibility() == View.GONE ? View.VISIBLE : View.GONE);
-      buttonArrow.setImageResource(layoutAnswer.getVisibility() == View.GONE ? R.drawable.icon_closearrow : R.drawable.icon_openarrow);
+      buttonArrow.setImageResource(layoutAnswer.getVisibility() == View.VISIBLE ? R.drawable.icon_closearrow : R.drawable.icon_openarrow);
     }
   }
 }

+ 46 - 64
app/src/main/res/layout/faq_question_list.xml

@@ -7,70 +7,52 @@
   android:background="@drawable/faq_answer_border"
   android:orientation="vertical">
 
-
-  <LinearLayout
-    android:layout_width="match_parent"
+<RelativeLayout
+  android:layout_width="match_parent"
+  android:layout_height="wrap_content">
+  <TextView
+    android:id="@+id/faq_category"
+    android:layout_width="wrap_content"
     android:layout_height="wrap_content"
-    android:orientation="horizontal">
-
-    <LinearLayout
-      android:layout_width="wrap_content"
-      android:layout_height="match_parent"
-      android:layout_weight="4"
-      android:orientation="vertical"
-      android:paddingStart="23dp"
-      android:paddingTop="23dp"
-      android:paddingBottom="23dp">
-
-      <TextView
-        android:id="@+id/faq_category"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginBottom="5dp"
-        android:lineSpacingExtra="4sp"
-        android:textColor="@color/C999999"
-        android:textSize="10sp"
-        tools:text="회원"/>
-
-      <TextView
-        android:id="@+id/faq_question"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:lineSpacingExtra="5sp"
-        android:maxLines="3"
-        android:textColor="@color/C333333"
-        android:textSize="14sp"
-        tools:text="@string/sign_up_from_zumo_description"
-        />
-
-    </LinearLayout>
-
-    <Space
-      android:layout_width="0dp"
-      android:layout_height="match_parent"
-      android:layout_weight="1"
-      />
-
-    <LinearLayout
-      android:layout_width="wrap_content"
-      android:layout_height="match_parent"
-      android:gravity="center"
-      android:orientation="horizontal">
-
-      <ImageView
-        android:id="@+id/button_open_arrow"
-        android:layout_width="21dp"
-        android:layout_height="21dp"
-        android:padding="5dp"
-        android:scaleType="center"
-        android:layout_marginStart="12dp"
-        android:layout_marginEnd="22dp"
-        android:src="@drawable/icon_openarrow"
-        />
+    android:layout_alignParentStart="true"
+    android:layout_alignParentTop="true"
+    android:layout_marginStart="22dp"
+    android:layout_marginTop="22dp"
+    android:lineSpacingExtra="4sp"
+    android:textColor="@color/C999999"
+    android:textSize="10sp"
+    tools:text="회원"/>
+
+  <TextView
+    android:id="@+id/faq_question"
+    android:layout_width="317dp"
+    android:layout_height="wrap_content"
+    android:layout_alignParentStart="true"
+    android:layout_alignParentTop="true"
+    android:layout_marginBottom="22dp"
+
+    android:layout_marginStart="22dp"
+    android:layout_marginTop="44dp"
+    android:lineSpacingExtra="5sp"
+    android:maxLines="3"
+    android:textColor="@color/C333333"
+    android:textSize="14sp"
+    android:layout_marginEnd="50dp"
+    tools:text="@string/sign_up_from_zumo_description"/>
+
+  <ImageView
+    android:id="@+id/button_open_arrow"
+    android:layout_width="21dp"
+    android:layout_height="wrap_content"
+    android:layout_alignParentEnd="true"
+    android:layout_centerVertical="true"
+    android:layout_marginEnd="20dp"
+    android:padding="5dp"
+    android:scaleType="center"
+    android:src="@drawable/icon_openarrow"/>
 
-    </LinearLayout>
 
-  </LinearLayout>
+</RelativeLayout>
 
   <LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
@@ -86,9 +68,9 @@
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:orientation="vertical"
-      android:paddingStart="23dp"
-      android:paddingEnd="23dp"
       android:paddingBottom="23dp"
+      android:paddingEnd="23dp"
+      android:paddingStart="23dp"
       >
 
       <View
@@ -109,6 +91,6 @@
         />
 
     </LinearLayout>
-
   </LinearLayout>
+
 </LinearLayout>

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

@@ -15,7 +15,7 @@
     android:layout_marginLeft="25dp"
     android:layout_marginTop="25dp"
     android:layout_marginRight="25dp"
-    android:layout_marginBottom="25dp"
+    android:layout_marginBottom="10dp"
     android:divider="@color/CFFFFFF"
     android:dividerHeight="50dp">