Browse Source

[콘텐츠상세][Common] 딤 레이어 수정

Hasemi 7 years ago
parent
commit
0a1799fa94

+ 10 - 0
app/src/main/res/drawable/listicle_dim_bottom_15.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+       android:shape="rectangle">
+  <gradient
+    android:angle="90"
+    android:endColor="#00000000"
+    android:centerColor="#20000000"
+    android:startColor="#26000000"
+    android:type="linear"/>
+</shape>

+ 9 - 0
app/src/main/res/drawable/listicle_dim_bottom_30.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+       android:shape="rectangle">
+  <gradient
+    android:angle="90"
+    android:endColor="#00000000"
+    android:startColor="#4d000000"
+    android:type="linear"/>
+</shape>

+ 7 - 0
app/src/main/res/drawable/listicle_dim_full.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
+
+  <solid android:color="#1A000000"/>
+  <corners
+    android:radius="0dp"/>
+</shape>

+ 10 - 0
app/src/main/res/drawable/listicle_dim_top.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+       android:shape="rectangle">
+<gradient
+  android:angle="90"
+  android:endColor="#00000000"
+  android:startColor="#38000000"
+  android:centerColor="#0F000000"
+  android:type="linear"/>
+</shape>

+ 37 - 0
app/src/main/res/layout/custom_listicle_image_view.xml

@@ -6,6 +6,43 @@
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:descendantFocusability="blocksDescendants">
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="183dp"
+    android:background="@drawable/listicle_dim_top"
+    app:layout_constraintTop_toTopOf="parent"
+    android:rotation="180"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    />
+
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="183dp"
+    android:background="@drawable/listicle_dim_bottom_15"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    />
+
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="190dp"
+    android:background="@drawable/listicle_dim_bottom_30"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintBottom_toBottomOf="parent"
+    />
+
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@drawable/listicle_dim_full"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    />
 
   <android.support.v7.widget.RecyclerView
     android:id="@+id/recycler_view_listicle_view"

+ 1 - 21
app/src/main/res/layout/custom_listicle_image_view_item.xml

@@ -16,25 +16,5 @@
     app:layout_constraintEnd_toEndOf="parent"
     app:layout_constraintStart_toStartOf="parent"
     app:layout_constraintTop_toTopOf="parent"
-    tools:src="@drawable/banner_bg_1"/>
-
-  <View
-    android:id="@+id/top_dim"
-    android:layout_width="match_parent"
-    android:layout_height="0dp"
-    android:background="@drawable/rectangle_dim_black_20"
-    app:layout_constraintBottom_toBottomOf="parent"
-    app:layout_constraintEnd_toEndOf="parent"
-    app:layout_constraintStart_toStartOf="parent"
-    app:layout_constraintTop_toTopOf="parent"/>
-
-  <View
-    android:id="@+id/dim"
-    android:layout_width="match_parent"
-    android:layout_height="183dp"
-    android:background="@drawable/rectangle_dim_black_50_gradation"
-    app:layout_constraintBottom_toBottomOf="parent"
-    app:layout_constraintEnd_toEndOf="parent"
-    app:layout_constraintStart_toStartOf="parent"
-    />
+    tools:src="@color/CFFFFFF"/>
 </android.support.constraint.ConstraintLayout>