소스 검색

[카테고리][Bug] '여행 어디가지' 레이아웃 크기 맞춤

hyodong.min 7 년 전
부모
커밋
d062e579b7

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/type2/SecondCategoryMainAdapter.java

@@ -112,7 +112,7 @@ public class SecondCategoryMainAdapter extends RecyclerView.Adapter<SecondCatego
 
   @Override
   public int getItemCount() {
-    return contentsBeans.size();
+    return contentsBeans.size() / 3;
   }
 
   private boolean hasBanner() {

+ 11 - 4
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/type2/SecondCategoryMainHolder.java

@@ -65,12 +65,19 @@ public abstract class SecondCategoryMainHolder extends CategoryMainViewHolder<Ca
     if (null != bean) {
       List<CategoryContentsBean> list = bean.getContentsList();
       if (null != list) {
-        int len = list.size();
+        int len = 3; //list.size();
         for (int i = 0; i < len; ++i) {
-          ImageView imageView = images[i];
-          TextView textView = texts[i];
+          CategoryContentsBean bean = list.get(i);
+          if (null != bean) {
+            itemView.setVisibility(View.VISIBLE);
+            ImageView imageView = images[i];
+            TextView textView = texts[i];
 
-          setupView(index + i, list.get(i), imageView, textView);
+            setupView(index + i, list.get(i), imageView, textView);
+          }
+          else {
+            itemView.setVisibility(View.INVISIBLE);
+          }
         }
       }
     }

+ 161 - 132
app/src/main/res/layout/main_second_category_first_row.xml

@@ -1,31 +1,68 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<android.support.constraint.ConstraintLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="205dp"
-  android:orientation="horizontal"
-  android:weightSum="3"
+  android:layout_height="wrap_content"
   >
 
-  <android.support.constraint.ConstraintLayout
-    android:id="@+id/layout_1"
+  <View
+    android:id="@+id/view0"
     android:layout_width="0dp"
-    android:layout_height="match_parent"
+    android:layout_height="0dp"
     android:layout_marginEnd="7dp"
-    android:layout_weight="2"
     app:layout_constraintBottom_toBottomOf="parent"
-    app:layout_constraintEnd_toStartOf="@+id/layout_2"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toStartOf="@id/view1"
+    app:layout_constraintHorizontal_chainStyle="packed"
     app:layout_constraintStart_toStartOf="parent"
-    app:layout_constraintTop_toTopOf="parent">
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias="0"/>
 
-    <android.support.constraint.ConstraintLayout
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:background="@drawable/rectangle_dim_top"
-      app:layout_constraintBottom_toBottomOf="parent"
-      />
+  <View
+    android:id="@+id/view1"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    android:layout_marginEnd="7dp"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toStartOf="@id/view2"
+    app:layout_constraintStart_toEndOf="@id/view0"
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias="0"/>
+
+  <View
+    android:id="@+id/view2"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    android:layout_marginBottom="7dp"
+    app:layout_constraintBottom_toTopOf="@id/view3"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toEndOf="@id/view1"
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias="0"
+    app:layout_constraintVertical_chainStyle="packed"/>
+
+  <View
+    android:id="@+id/view3"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="@+id/view2"
+    app:layout_constraintTop_toBottomOf="@+id/view2"/>
+
+  <android.support.constraint.ConstraintLayout
+    android:id="@+id/layout_1"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="@+id/view3"
+    app:layout_constraintEnd_toEndOf="@+id/view1"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent">
 
     <ImageView
       android:id="@+id/image_1"
@@ -39,6 +76,13 @@
       tools:src="@drawable/banner_bg_1"
       />
 
+    <android.support.constraint.ConstraintLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:background="@drawable/rectangle_dim_top"
+      app:layout_constraintBottom_toBottomOf="parent"
+      />
+
     <android.support.constraint.ConstraintLayout
       android:id="@+id/image_dim_layer"
       android:layout_width="match_parent"
@@ -58,131 +102,116 @@
         android:textColor="@color/CFFFFFF"
         android:textSize="14sp"
         app:layout_constrainedWidth="true"
-        app:layout_constraintHorizontal_bias="0"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0"
         app:layout_constraintStart_toStartOf="parent"
         tools:text="여행은 돈쓰는 만큼"/>
     </android.support.constraint.ConstraintLayout>
   </android.support.constraint.ConstraintLayout>
 
-  <LinearLayout
+  <android.support.constraint.ConstraintLayout
     android:layout_width="0dp"
-    android:layout_height="match_parent"
-    android:layout_weight="1">
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="@+id/view2"
+    app:layout_constraintEnd_toEndOf="@+id/view2"
+    app:layout_constraintStart_toStartOf="@+id/view2"
+    app:layout_constraintTop_toTopOf="@+id/view2">
 
-    <LinearLayout
-      android:id="@+id/layout_2"
+    <ImageView
+      android:id="@+id/image_2"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
-      android:orientation="vertical"
-      android:weightSum="2"
+      android:scaleType="centerCrop"
+      app:layout_constraintStart_toStartOf="parent"
+      app:layout_constraintTop_toTopOf="parent"
+      tools:src="@drawable/banner_bg_1"
+      />
+
+    <android.support.constraint.ConstraintLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:background="@drawable/rectangle_dim_top"
       app:layout_constraintBottom_toBottomOf="parent"
-      app:layout_constraintEnd_toEndOf="parent"
-      app:layout_constraintHorizontal_chainStyle="packed"
-      app:layout_constraintStart_toEndOf="@+id/layout_1"
-      app:layout_constraintTop_toTopOf="parent">
-
-      <android.support.constraint.ConstraintLayout
-        android:layout_width="match_parent"
-        android:layout_height="0dp"
-        android:layout_weight="1">
-
-        <ImageView
-          android:id="@+id/image_2"
-          android:layout_width="match_parent"
-          android:layout_height="match_parent"
-          android:scaleType="centerCrop"
-          app:layout_constraintStart_toStartOf="parent"
-          app:layout_constraintTop_toTopOf="parent"
-          tools:src="@drawable/banner_bg_1"
-          />
-
-        <android.support.constraint.ConstraintLayout
-          android:layout_width="match_parent"
-          android:layout_height="wrap_content"
-          android:background="@drawable/rectangle_dim_top"
-          app:layout_constraintBottom_toBottomOf="parent"
-          />
-
-        <android.support.constraint.ConstraintLayout
-          android:id="@+id/image_dim_layer2"
-          android:layout_width="match_parent"
-          android:layout_height="61dp"
-          android:background="@drawable/rectangle_dim"
-          app:layout_constraintBottom_toBottomOf="parent"
-          >
-
-          <TextView
-            android:id="@+id/text_2"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginStart="10dp"
-            android:layout_marginEnd="10dp"
-            android:layout_marginBottom="10dp"
-            android:lineSpacingExtra="6sp"
-            android:maxLines="2"
-            android:textColor="@color/CFFFFFF"
-            android:textSize="12sp"
-            app:layout_constrainedWidth="true"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintHorizontal_bias="0"
-            app:layout_constraintStart_toStartOf="parent"
-            tools:text="디즈니랜드 여행"/>
-        </android.support.constraint.ConstraintLayout>
-      </android.support.constraint.ConstraintLayout>
-
-      <android.support.constraint.ConstraintLayout
-        android:layout_width="match_parent"
-        android:layout_marginTop="7dp"
-        android:layout_height="0dp"
-        android:layout_weight="1">
-
-        <ImageView
-          android:id="@+id/image_3"
-          android:layout_width="match_parent"
-          android:layout_height="match_parent"
-          android:scaleType="centerCrop"
-          app:layout_constraintBottom_toBottomOf="parent"
-          tools:src="@drawable/banner_bg_1"/>
-
-        <android.support.constraint.ConstraintLayout
-          android:layout_width="match_parent"
-          android:layout_height="wrap_content"
-          android:background="@drawable/rectangle_dim_top"
-          app:layout_constraintTop_toTopOf="parent"
-          app:layout_constraintBottom_toBottomOf="parent"
-          />
-
-        <android.support.constraint.ConstraintLayout
-          android:id="@+id/image_dim_layer3"
-          android:layout_width="match_parent"
-          android:layout_height="61dp"
-          android:background="@drawable/rectangle_dim"
-          app:layout_constraintBottom_toBottomOf="parent"
-          >
-
-          <TextView
-            android:id="@+id/text_3"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginStart="10dp"
-            android:layout_marginEnd="10dp"
-            android:layout_marginBottom="10dp"
-            android:lineSpacingExtra="6sp"
-            android:maxLines="2"
-            android:textColor="@color/CFFFFFF"
-            android:textSize="12sp"
-            app:layout_constrainedWidth="true"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintHorizontal_bias="0"
-            app:layout_constraintStart_toStartOf="parent"
-            tools:text="디즈니랜드 여행"/>
-        </android.support.constraint.ConstraintLayout>
-      </android.support.constraint.ConstraintLayout>
-    </LinearLayout>
-
-  </LinearLayout>
-</LinearLayout>
+      />
+
+    <android.support.constraint.ConstraintLayout
+      android:id="@+id/image_dim_layer2"
+      android:layout_width="match_parent"
+      android:layout_height="61dp"
+      android:background="@drawable/rectangle_dim"
+      app:layout_constraintBottom_toBottomOf="parent"
+      >
+
+      <TextView
+        android:id="@+id/text_2"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="10dp"
+        android:layout_marginEnd="10dp"
+        android:layout_marginBottom="10dp"
+        android:lineSpacingExtra="6sp"
+        android:maxLines="2"
+        android:textColor="@color/CFFFFFF"
+        android:textSize="12sp"
+        app:layout_constrainedWidth="true"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0"
+        app:layout_constraintStart_toStartOf="parent"
+        tools:text="디즈니랜드 여행"/>
+    </android.support.constraint.ConstraintLayout>
+  </android.support.constraint.ConstraintLayout>
+
+  <android.support.constraint.ConstraintLayout
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="@+id/view3"
+    app:layout_constraintEnd_toEndOf="@+id/view3"
+    app:layout_constraintStart_toStartOf="@+id/view3"
+    app:layout_constraintTop_toTopOf="@+id/view3">
+
+    <ImageView
+      android:id="@+id/image_3"
+      android:layout_width="match_parent"
+      android:layout_height="match_parent"
+      android:scaleType="centerCrop"
+      app:layout_constraintBottom_toBottomOf="parent"
+      tools:src="@drawable/banner_bg_1"/>
+
+    <android.support.constraint.ConstraintLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:background="@drawable/rectangle_dim_top"
+      app:layout_constraintBottom_toBottomOf="parent"
+      app:layout_constraintTop_toTopOf="parent"
+      />
+
+    <android.support.constraint.ConstraintLayout
+      android:id="@+id/image_dim_layer3"
+      android:layout_width="match_parent"
+      android:layout_height="61dp"
+      android:background="@drawable/rectangle_dim"
+      app:layout_constraintBottom_toBottomOf="parent"
+      >
+
+      <TextView
+        android:id="@+id/text_3"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="10dp"
+        android:layout_marginEnd="10dp"
+        android:layout_marginBottom="10dp"
+        android:lineSpacingExtra="6sp"
+        android:maxLines="2"
+        android:textColor="@color/CFFFFFF"
+        android:textSize="12sp"
+        app:layout_constrainedWidth="true"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0"
+        app:layout_constraintStart_toStartOf="parent"
+        tools:text="디즈니랜드 여행"/>
+    </android.support.constraint.ConstraintLayout>
+  </android.support.constraint.ConstraintLayout>
+</android.support.constraint.ConstraintLayout>

+ 161 - 127
app/src/main/res/layout/main_second_category_second_row.xml

@@ -1,144 +1,132 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<android.support.constraint.ConstraintLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="205dp"
-  android:orientation="horizontal"
-  android:weightSum="3"
+  android:layout_height="wrap_content"
   >
 
-  <LinearLayout
+  <View
+    android:id="@+id/view0"
     android:layout_width="0dp"
-    android:layout_height="match_parent"
-    android:layout_weight="1">
+    android:layout_height="0dp"
+    android:layout_marginEnd="7dp"
+    android:layout_marginBottom="7dp"
+    app:layout_constraintBottom_toTopOf="@id/view3"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toStartOf="@id/view1"
+    app:layout_constraintHorizontal_chainStyle="packed"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias="0"
+    app:layout_constraintVertical_chainStyle="packed"/>
+
+  <View
+    android:id="@+id/view1"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    android:layout_marginEnd="7dp"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toStartOf="@id/view2"
+    app:layout_constraintStart_toEndOf="@id/view0"
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias="0"/>
+
+  <View
+    android:id="@+id/view2"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toEndOf="@id/view1"
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias="0"/>
+
+  <View
+    android:id="@+id/view3"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="@+id/view0"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toBottomOf="@+id/view0"
+    app:layout_constraintVertical_bias="0"/>
 
 
-    <LinearLayout
-      android:id="@+id/layout_2"
+  <android.support.constraint.ConstraintLayout
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="@id/view0"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="@id/view0"
+    app:layout_constraintStart_toStartOf="@id/view0"
+    app:layout_constraintTop_toTopOf="@id/view0">
+
+    <ImageView
+      android:id="@+id/image_1"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
-      android:orientation="vertical"
-      android:weightSum="2"
+      android:scaleType="centerCrop"
+      app:layout_constraintStart_toStartOf="parent"
+      app:layout_constraintTop_toTopOf="parent"
+      tools:src="@drawable/banner_bg_1"
+      />
+
+    <android.support.constraint.ConstraintLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:background="@drawable/rectangle_dim_top"
       app:layout_constraintBottom_toBottomOf="parent"
-      app:layout_constraintEnd_toEndOf="parent"
-      app:layout_constraintHorizontal_chainStyle="packed"
-      app:layout_constraintStart_toEndOf="@+id/layout_1"
-      app:layout_constraintTop_toTopOf="parent">
-
-      <android.support.constraint.ConstraintLayout
-        android:layout_width="match_parent"
-        android:layout_height="0dp"
-        android:layout_weight="1">
-
-        <ImageView
-          android:id="@+id/image_1"
-          android:layout_width="match_parent"
-          android:layout_height="match_parent"
-          android:scaleType="centerCrop"
-          app:layout_constraintStart_toStartOf="parent"
-          app:layout_constraintTop_toTopOf="parent"
-          tools:src="@drawable/banner_bg_1"
-          />
-
-        <android.support.constraint.ConstraintLayout
-          android:layout_width="match_parent"
-          android:layout_height="wrap_content"
-          android:background="@drawable/rectangle_dim_top"
-          app:layout_constraintBottom_toBottomOf="parent"
-          />
-
-        <android.support.constraint.ConstraintLayout
-          android:id="@+id/image_dim_layer2"
-          android:layout_width="match_parent"
-          android:layout_height="61dp"
-          android:background="@drawable/rectangle_dim"
-          app:layout_constraintBottom_toBottomOf="parent"
-          >
-
-          <TextView
-            android:id="@+id/text_1"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginStart="10dp"
-            android:layout_marginEnd="10dp"
-            android:layout_marginBottom="10dp"
-            android:lineSpacingExtra="6sp"
-            android:maxLines="2"
-            android:textColor="@color/CFFFFFF"
-            android:textSize="12sp"
-            app:layout_constrainedWidth="true"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintHorizontal_bias="0"
-            app:layout_constraintStart_toStartOf="parent"
-            tools:text="디즈니랜드 여행"/>
-        </android.support.constraint.ConstraintLayout>
-      </android.support.constraint.ConstraintLayout>
-
-      <android.support.constraint.ConstraintLayout
-        android:layout_width="match_parent"
-        android:layout_height="0dp"
-        android:layout_marginTop="7dp"
-        android:layout_weight="1">
-
-        <ImageView
-          android:id="@+id/image_2"
-          android:layout_width="match_parent"
-          android:layout_height="match_parent"
-          android:scaleType="centerCrop"
-          app:layout_constraintBottom_toBottomOf="parent"
-          tools:src="@drawable/banner_bg_1"/>
-
-        <android.support.constraint.ConstraintLayout
-          android:layout_width="match_parent"
-          android:layout_height="wrap_content"
-          android:background="@drawable/rectangle_dim_top"
-          app:layout_constraintBottom_toBottomOf="parent"
-          />
-
-        <android.support.constraint.ConstraintLayout
-          android:id="@+id/image_dim_layer3"
-          android:layout_width="match_parent"
-          android:layout_height="61dp"
-          android:background="@drawable/rectangle_dim"
-          app:layout_constraintBottom_toBottomOf="parent"
-          >
-
-          <TextView
-            android:id="@+id/text_2"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginStart="10dp"
-            android:layout_marginEnd="10dp"
-            android:layout_marginBottom="10dp"
-            android:lineSpacingExtra="6sp"
-            android:maxLines="2"
-            android:textColor="@color/CFFFFFF"
-            android:textSize="12sp"
-            app:layout_constrainedWidth="true"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintHorizontal_bias="0"
-            app:layout_constraintStart_toStartOf="parent"
-
-            tools:text="#디즈니랜드#여행 #여행#여행#여행"/>
-        </android.support.constraint.ConstraintLayout>
-      </android.support.constraint.ConstraintLayout>
-    </LinearLayout>
-
-  </LinearLayout>
+      />
+
+    <android.support.constraint.ConstraintLayout
+      android:id="@+id/image_dim_layer2"
+      android:layout_width="match_parent"
+      android:layout_height="61dp"
+      android:background="@drawable/rectangle_dim"
+      app:layout_constraintBottom_toBottomOf="parent"
+      >
+
+      <TextView
+        android:id="@+id/text_1"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="10dp"
+        android:layout_marginEnd="10dp"
+        android:layout_marginBottom="10dp"
+        android:lineSpacingExtra="6sp"
+        android:maxLines="2"
+        android:textColor="@color/CFFFFFF"
+        android:textSize="12sp"
+        app:layout_constrainedWidth="true"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0"
+        app:layout_constraintStart_toStartOf="parent"
+        tools:text="디즈니랜드 여행"/>
+    </android.support.constraint.ConstraintLayout>
+  </android.support.constraint.ConstraintLayout>
 
   <android.support.constraint.ConstraintLayout
-    android:id="@+id/layout_1"
     android:layout_width="0dp"
-    android:layout_height="match_parent"
-    android:layout_marginStart="7dp"
-    android:layout_weight="2"
-    app:layout_constraintBottom_toBottomOf="parent"
-    app:layout_constraintStart_toEndOf="@+id/layout_2"
-    app:layout_constraintTop_toTopOf="parent">
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="@id/view3"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="@id/view3"
+    app:layout_constraintStart_toStartOf="@id/view3"
+    app:layout_constraintTop_toTopOf="@id/view3">
+
+    <ImageView
+      android:id="@+id/image_2"
+      android:layout_width="match_parent"
+      android:layout_height="match_parent"
+      android:scaleType="centerCrop"
+      app:layout_constraintBottom_toBottomOf="parent"
+      tools:src="@drawable/banner_bg_1"/>
 
     <android.support.constraint.ConstraintLayout
       android:layout_width="match_parent"
@@ -147,6 +135,45 @@
       app:layout_constraintBottom_toBottomOf="parent"
       />
 
+    <android.support.constraint.ConstraintLayout
+      android:id="@+id/image_dim_layer3"
+      android:layout_width="match_parent"
+      android:layout_height="61dp"
+      android:background="@drawable/rectangle_dim"
+      app:layout_constraintBottom_toBottomOf="parent"
+      >
+
+      <TextView
+        android:id="@+id/text_2"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="10dp"
+        android:layout_marginEnd="10dp"
+        android:layout_marginBottom="10dp"
+        android:lineSpacingExtra="6sp"
+        android:maxLines="2"
+        android:textColor="@color/CFFFFFF"
+        android:textSize="12sp"
+        app:layout_constrainedWidth="true"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0"
+        app:layout_constraintStart_toStartOf="parent"
+
+        tools:text="#디즈니랜드#여행 #여행#여행#여행"/>
+    </android.support.constraint.ConstraintLayout>
+  </android.support.constraint.ConstraintLayout>
+
+  <android.support.constraint.ConstraintLayout
+    android:id="@+id/layout_1"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintBottom_toBottomOf="@id/view3"
+    app:layout_constraintDimensionRatio="1:1"
+    app:layout_constraintEnd_toEndOf="@id/view2"
+    app:layout_constraintStart_toStartOf="@id/view1"
+    app:layout_constraintTop_toTopOf="@id/view1">
+
     <ImageView
       android:id="@+id/image_3"
       android:layout_width="match_parent"
@@ -159,6 +186,13 @@
       tools:src="@drawable/banner_bg_1"
       />
 
+    <android.support.constraint.ConstraintLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:background="@drawable/rectangle_dim_top"
+      app:layout_constraintBottom_toBottomOf="parent"
+      />
+
     <android.support.constraint.ConstraintLayout
       android:id="@+id/image_dim_layer"
       android:layout_width="match_parent"
@@ -178,13 +212,13 @@
         android:textColor="@color/CFFFFFF"
         android:textSize="14sp"
         app:layout_constrainedWidth="true"
-        app:layout_constraintHorizontal_bias="0"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0"
         app:layout_constraintStart_toStartOf="parent"
         tools:text="여행은 돈쓰는 만큼"/>
     </android.support.constraint.ConstraintLayout>
   </android.support.constraint.ConstraintLayout>
 
 
-</LinearLayout>
+</android.support.constraint.ConstraintLayout>