Browse Source

[콘텐츠상세][Common] 카드형 딤 수정 추가

Hasemi 7 years ago
parent
commit
bf021669f5

+ 10 - 0
app/src/main/res/drawable/card_cover_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:centerColor="#08000000"
+    android:startColor="#1C000000"
+    android:type="linear" />
+</shape>

+ 10 - 2
app/src/main/res/layout/contents_card_listicle_cover.xml

@@ -5,11 +5,19 @@
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent">
-
   <ImageView
     android:id="@+id/image_view_card_listicle_cover"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:scaleType="centerCrop"
-    tools:src="@drawable/mymain_bucket_banner_3"/>
+    tools:background="@color/CFFFFFF"/>
+
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="226dp"
+    android:rotation="180"
+    android:background="@drawable/card_cover_dim_top"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintTop_toTopOf="parent"/>
 </android.support.constraint.ConstraintLayout>

+ 9 - 0
app/src/main/res/layout/contents_card_listicle_detail.xml

@@ -22,6 +22,15 @@
       app:layout_constraintTop_toTopOf="parent"/>
   </android.support.constraint.ConstraintLayout>
 
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="226dp"
+    android:rotation="180"
+    android:background="@drawable/card_cover_dim_top"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintTop_toTopOf="parent"/>
+
   <android.support.constraint.ConstraintLayout
     android:id="@+id/layout_more_info"
     android:layout_width="wrap_content"