Przeglądaj źródła

[카테고리메인][Common] 필터 콘텐츠 없는 경우 레이아웃 구성

Hasemi 7 lat temu
rodzic
commit
0ddc4111bd

Plik diff jest za duży
+ 6 - 0
app/src/main/res/drawable/icon_category_main_contents_nothing.xml


+ 31 - 3
app/src/main/res/layout/main_category_filter_result_nothing.xml

@@ -1,6 +1,34 @@
 <?xml version="1.0" encoding="utf-8"?>
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
-                                             android:layout_width="match_parent"
-                                             android:layout_height="match_parent">
+<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="match_parent">
+
+  <ImageView
+    android:id="@+id/image_view_filter_result_nothing"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    app:srcCompat="@drawable/icon_category_main_contents_nothing"
+    />
+
+  <TextView
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_marginTop="18dp"
+    android:gravity="center_horizontal"
+    android:lineSpacingExtra="6sp"
+    android:text="@string/filter_result_nothing"
+    android:textColor="@color/CC5C5C5"
+    android:textSize="14sp"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toBottomOf="@+id/image_view_filter_result_nothing"
+    />
 
 </android.support.constraint.ConstraintLayout>

+ 2 - 0
app/src/main/res/values/strings.xml

@@ -388,6 +388,8 @@
   <string name="reset_filter">초기화</string>
   <string name="show_contents">48개 콘텐츠 보기</string>
 
+  <string name="filter_result_nothing">콘텐츠를 준비하고 있습니다.
\n다른 필터로 적용해주세요.</string>
+