浏览代码

[이벤트][Common] 마이 이벤트 이벤트 없을 경우 화면 구현

Hasemi 7 年之前
父节点
当前提交
45fc81d665
共有 2 个文件被更改,包括 34 次插入3 次删除
  1. 33 3
      app/src/main/res/layout/fragment_my_event.xml
  2. 1 0
      app/src/main/res/values/strings.xml

+ 33 - 3
app/src/main/res/layout/fragment_my_event.xml

@@ -10,9 +10,8 @@
     android:id="@+id/recycler_view_my_event"
     android:layout_width="match_parent"
     android:layout_height="0dp"
-    tools:background="@color/CC5C5C5"
-    app:layout_constraintTop_toTopOf="parent"
-    app:layout_constraintBottom_toTopOf="@+id/button_ing_event"/>
+    app:layout_constraintBottom_toTopOf="@+id/button_ing_event"
+    app:layout_constraintTop_toTopOf="parent"/>
 
   <android.support.constraint.ConstraintLayout
     android:id="@+id/button_ing_event"
@@ -38,4 +37,35 @@
       />
 
   </android.support.constraint.ConstraintLayout>
+
+  <ImageView
+    android:id="@+id/image_view_search_none"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_marginBottom="20dp"
+    android:visibility="gone"
+    app:layout_constraintBottom_toTopOf="@+id/textView8"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    app:layout_constraintVertical_bias=".35"
+    app:layout_constraintVertical_chainStyle="packed"
+    app:srcCompat="@drawable/ic_icon_search_none"
+    tools:visibility="visible"/>
+
+  <TextView
+    android:id="@+id/textView8"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:gravity="center_horizontal"
+    android:lineSpacingExtra="6sp"
+    android:text="@string/event_none"
+    android:textColor="@color/CC5C5C5"
+    android:textSize="14sp"
+    android:visibility="gone"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toBottomOf="@+id/image_view_search_none"
+    tools:visibility="visible"/>
 </android.support.constraint.ConstraintLayout>

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

@@ -569,6 +569,7 @@
   <string name="event">이벤트</string>
   <string name="event_ing">진행중인 이벤트</string>
   <string name="winner_announcement">당첨자 발표</string>
+  <string name="event_none">참여하신 이벤트가 없습니다</string>
   <string name="show_event">이벤트 보기</string>
   <string name="event_date">2018.08.13. 11:24</string>
   <string name="event_title">디뮤지엄 전시회 티켓 증정 이벤트</string>