Explorar el Código

[콘텐츠상세][Common] 카드형, 카드리스티클형 상세 부분 페이지번호 표기 부분에 딤 레이어 추가

Hasemi hace 7 años
padre
commit
8c52d1c79b

+ 10 - 0
app/src/main/res/drawable/card_dim_bottom_40.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="#33000000"
+    android:startColor="#66000000"
+    android:type="linear" />
+</shape>

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

@@ -25,10 +25,10 @@
   <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"
+    android:rotation="180"
     app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
     app:layout_constraintTop_toTopOf="parent"/>
 
   <android.support.constraint.ConstraintLayout
@@ -73,6 +73,12 @@
 
   </android.support.constraint.ConstraintLayout>
 
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="72dp"
+    android:background="@drawable/card_dim_bottom_40"
+    app:layout_constraintBottom_toBottomOf="parent"/>
+
   <TextView
     android:id="@+id/text_view_page_number"
     android:layout_width="wrap_content"
@@ -88,4 +94,5 @@
     app:layout_constraintEnd_toEndOf="parent"
     tools:text="1 / 5"
     />
+
 </android.support.constraint.ConstraintLayout>