Browse Source

[마이][Common] 버킷리스트 인디케이터 수정

Hasemi 7 years ago
parent
commit
7ec6fdb41c

+ 8 - 0
app/src/main/res/drawable/icon_plus_banner.xml

@@ -0,0 +1,8 @@
+<vector android:height="18dp" android:viewportHeight="104"
+        android:viewportWidth="104" android:width="18dp" xmlns:android="http://schemas.android.com/apk/res/android">
+  <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M52,2L52,2A50,50 0,0 1,102 52L102,52A50,50 0,0 1,52 102L52,102A50,50 0,0 1,2 52L2,52A50,50 0,0 1,52 2z"
+        android:strokeColor="#FFF" android:strokeWidth="4"/>
+  <path android:fillColor="#00000000" android:fillType="nonZero"
+        android:pathData="M34,52h36M52,34v36" android:strokeColor="#FFF" android:strokeWidth="4"/>
+</vector>

+ 3 - 1
app/src/main/res/drawable/tab_white_active.xml

@@ -3,7 +3,9 @@
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:innerRadius="0dp"
   android:shape="ring"
-  android:thickness="3dp"
   android:useLevel="false">
+  <size
+    android:width="5dp"
+    android:height="5dp"/>
   <solid android:color="@color/CFFFFFF"/>
 </shape>

+ 8 - 6
app/src/main/res/drawable/tab_white_inactive.xml

@@ -1,9 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <shape
-  xmlns:android="http://schemas.android.com/apk/res/android"
-  android:innerRadius="0dp"
-  android:shape="ring"
-  android:thickness="3dp"
-  android:useLevel="false">
-  <solid android:color="@color/C4DFFFFFF"/>
+xmlns:android="http://schemas.android.com/apk/res/android"
+android:innerRadius="0dp"
+android:shape="ring"
+android:useLevel="false">
+<size
+  android:width="5dp"
+  android:height="5dp"/>
+<solid android:color="@color/C4DFFFFFF"/>
 </shape>

+ 7 - 3
app/src/main/res/layout/fragment_bucket_list.xml

@@ -26,13 +26,17 @@
     <android.support.design.widget.TabLayout
       android:id="@+id/tab_layout_bucket_list"
       android:layout_width="match_parent"
-      android:layout_height="wrap_content"
+      android:layout_height="5dp"
+      android:layout_alignBottom="@+id/view_pager_bucket_list"
+      android:layout_alignParentStart="true"
+      android:layout_marginBottom="10dp"
       app:layout_constraintBottom_toBottomOf="@+id/view_pager_bucket_list"
+      app:layout_constraintEnd_toEndOf="@+id/view_pager_bucket_list"
+      app:layout_constraintStart_toStartOf="@+id/view_pager_bucket_list"
       app:tabBackground="@drawable/best_bucket_tab_selector"
-      app:tabMaxWidth="0dp"
-      app:tabMode="fixed"
       app:tabGravity="center"
       app:tabIndicatorHeight="0dp"
+      tools:background="@color/CD0D0D0"
       />
 
     <!--<ImageView-->

+ 19 - 10
app/src/main/res/layout/fragment_my_bucket_list.xml

@@ -5,7 +5,7 @@
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:orientation="vertical"
- >
+  >
 
   <LinearLayout
     android:layout_width="match_parent"
@@ -23,19 +23,28 @@
 
       <android.support.v4.view.ViewPager
         android:id="@+id/view_pager_best_bucket_list"
-        android:layout_width="wrap_content"
-        android:layout_height="152dp"/>
+        android:layout_width="0dp"
+        android:layout_height="0dp"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintDimensionRatio="V, 360:174"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent"/>
 
       <android.support.design.widget.TabLayout
         android:id="@+id/tab_layout_bucket_list"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="5dp"
+        android:layout_alignBottom="@+id/view_pager_best_bucket_list"
+        android:layout_alignParentStart="true"
+        android:layout_marginBottom="10dp"
         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:layout_constraintEnd_toEndOf="@+id/view_pager_best_bucket_list"
+        app:layout_constraintStart_toStartOf="@+id/view_pager_best_bucket_list"
+        app:tabBackground="@drawable/best_bucket_tab_selector"
         app:tabGravity="center"
-        app:tabIndicatorHeight="0dp"/>
+        app:tabIndicatorHeight="0dp"
+   />
     </android.support.constraint.ConstraintLayout>
 
     <android.support.constraint.ConstraintLayout
@@ -117,8 +126,8 @@
         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:layout_gravity="center"
+        android:layout_marginBottom="30dp">
       </android.support.v7.widget.RecyclerView>
 
     </android.support.constraint.ConstraintLayout>

+ 8 - 7
app/src/main/res/layout/fragment_my_main.xml

@@ -632,10 +632,11 @@
 
       <android.support.v4.view.ViewPager
         android:id="@+id/view_pager_best_bucket_list"
-        android:layout_width="match_parent"
-        android:layout_height="149dp"
+        android:layout_width="0dp"
+        android:layout_height="0dp"
         android:layout_marginStart="10dp"
         android:layout_marginTop="5dp"
+        app:layout_constraintDimensionRatio="V, 311:150"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toBottomOf="@+id/text_view_exists_bucket_list"/>
@@ -643,17 +644,17 @@
       <android.support.design.widget.TabLayout
         android:id="@+id/tab_layout_bucket_list"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="5dp"
         android:layout_alignBottom="@+id/view_pager_best_bucket_list"
         android:layout_alignParentStart="true"
+        android:layout_marginBottom="10dp"
         app:layout_constraintBottom_toBottomOf="@+id/view_pager_best_bucket_list"
         app:layout_constraintEnd_toEndOf="@+id/view_pager_best_bucket_list"
         app:layout_constraintStart_toStartOf="@+id/view_pager_best_bucket_list"
-        app:tabBackground="@drawable/tab_selector"
-        app:tabGravity="center"
+        app:tabBackground="@drawable/best_bucket_tab_selector"
         app:tabIndicatorHeight="0dp"
-        tools:layout_editor_absoluteX="0dp"
-        tools:layout_editor_absoluteY="6dp"/>
+        app:tabGravity="center"
+        tools:background="@color/CD0D0D0"/>
 
     </android.support.constraint.ConstraintLayout>
 

+ 8 - 6
app/src/main/res/layout/my_bucket_list_banner_view.xml

@@ -4,7 +4,7 @@
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="wrap_content">
+  android:layout_height="match_parent">
 
   <ImageView
     android:id="@+id/image_show_bucket_list"
@@ -17,7 +17,6 @@
     android:id="@+id/text_view_bucket_list_rank"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
-    android:layout_marginTop="43dp"
     android:gravity="center_horizontal"
     android:text="Best Bucket List 5"
     android:textColor="@color/CFFFFFF"
@@ -26,7 +25,6 @@
     app:layout_constraintEnd_toEndOf="parent"
     app:layout_constraintStart_toStartOf="parent"
     app:layout_constraintTop_toTopOf="parent"
-    app:layout_constraintVertical_bias="0"
     app:layout_constraintVertical_chainStyle="packed"/>
 
   <TextView
@@ -34,6 +32,7 @@
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_marginTop="7dp"
+    android:layout_marginBottom="15dp"
     android:gravity="center_horizontal"
     android:textColor="@color/CFFFFFF"
     android:textSize="19sp"
@@ -41,16 +40,19 @@
     app:layout_constraintEnd_toEndOf="parent"
     app:layout_constraintStart_toStartOf="parent"
     app:layout_constraintTop_toBottomOf="@+id/text_view_bucket_list_rank"
-    tools:text="유럽으로 배낭 여행가기"/>
+    tools:text="유럽으로\n배낭 여행가기"/>
 
   <ImageView
     android:id="@+id/image_view_add_bucket_list"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
-    android:padding="10dp"
+    android:paddingStart="5dp"
+    android:paddingEnd="5dp"
+    android:paddingBottom="10dp"
+    android:paddingTop="10dp"
     android:scaleType="center"
     app:layout_constraintBottom_toBottomOf="@+id/text_view_bucket_list_title"
     app:layout_constraintStart_toEndOf="@+id/text_view_bucket_list_title"
     app:layout_constraintTop_toTopOf="@+id/text_view_bucket_list_title"
-    app:srcCompat="@drawable/icon_plus"/>
+    app:srcCompat="@drawable/icon_plus_banner"/>
 </android.support.constraint.ConstraintLayout>