Browse Source

[마이][Common] 버킷리스트레이아웃 수정

Hasemi 7 years ago
parent
commit
18fde0a6a9
1 changed files with 29 additions and 13 deletions
  1. 29 13
      app/src/main/res/layout/fragment_my_bucket_list.xml

+ 29 - 13
app/src/main/res/layout/fragment_my_bucket_list.xml

@@ -4,17 +4,23 @@
   xmlns:app="http://schemas.android.com/apk/res-auto"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
-  android:orientation="vertical">
+  android:paddingTop="@dimen/action_bar_height"
+  android:orientation="vertical"
+ >
 
   <LinearLayout
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:layout_marginTop="@dimen/action_bar_height"
     android:orientation="vertical">
 
-    <RelativeLayout
+    <android.support.constraint.ConstraintLayout
+      android:id="@+id/first_layout"
       android:layout_width="match_parent"
-      android:layout_height="wrap_content">
+      android:layout_height="wrap_content"
+      app:layout_constraintBottom_toBottomOf="parent"
+      app:layout_constraintEnd_toEndOf="parent"
+      app:layout_constraintStart_toStartOf="parent"
+      app:layout_constraintTop_toTopOf="parent">
 
       <android.support.v4.view.ViewPager
         android:id="@+id/view_pager_best_bucket_list"
@@ -25,20 +31,23 @@
         android:id="@+id/tab_layout_bucket_list"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_alignBottom="@+id/view_pager_best_bucket_list"
-        android:layout_alignParentStart="true"
-        android:layout_marginStart="0dp"
+        app:layout_constraintBottom_toBottomOf="@+id/view_pager_best_bucket_list"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
         app:tabBackground="@drawable/tab_selector"
         app:tabGravity="center"
         app:tabIndicatorHeight="0dp"/>
-    </RelativeLayout>
+    </android.support.constraint.ConstraintLayout>
 
     <android.support.constraint.ConstraintLayout
+      android:id="@+id/second_layout"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginStart="25dp"
       android:layout_marginTop="30dp"
-      android:orientation="vertical">
+      android:orientation="vertical"
+      app:layout_constraintStart_toStartOf="parent"
+      app:layout_constraintTop_toBottomOf="@+id/first_layout">
 
       <TextView
         android:layout_width="wrap_content"
@@ -51,12 +60,14 @@
     </android.support.constraint.ConstraintLayout>
 
     <android.support.constraint.ConstraintLayout
+      android:id="@+id/third_layout"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_gravity="center"
       android:layout_marginStart="25dp"
       android:layout_marginTop="3dp"
-      android:layout_marginEnd="25dp">
+      android:layout_marginEnd="25dp"
+      app:layout_constraintTop_toBottomOf="@+id/second_layout">
 
       <TextView
         android:layout_width="wrap_content"
@@ -89,22 +100,27 @@
         app:layout_constraintTop_toTopOf="parent"/>
     </android.support.constraint.ConstraintLayout>
 
-    <LinearLayout
+    <android.support.constraint.ConstraintLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_gravity="center"
       android:layout_marginStart="17dp"
       android:layout_marginTop="20dp"
       android:layout_marginEnd="17dp"
-      android:orientation="vertical">
+      app:layout_constraintBottom_toBottomOf="parent"
+      app:layout_constraintEnd_toEndOf="parent"
+      app:layout_constraintStart_toStartOf="parent"
+      app:layout_constraintTop_toBottomOf="@+id/third_layout"
+      >
 
       <android.support.v7.widget.RecyclerView
         android:id="@+id/recycler_view_my_bucket_list"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
+        android:layout_marginBottom="30dp"
         android:layout_gravity="center">
       </android.support.v7.widget.RecyclerView>
 
-    </LinearLayout>
+    </android.support.constraint.ConstraintLayout>
   </LinearLayout>
 </android.support.v4.widget.NestedScrollView>