Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 6db2bf0

Browse files
committed
Implement TextView for showing message
1 parent cd4b4d3 commit 6db2bf0

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed
Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1-
<android.support.v7.widget.RecyclerView android:id="@+id/recyclerView"
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22
android:layout_width="match_parent"
3-
android:layout_height="fill_parent"
4-
android:scrollbars="vertical"
5-
android:fadeScrollbars="false"
6-
android:background="@android:color/white"
7-
xmlns:android="http://schemas.android.com/apk/res/android" />
3+
android:layout_height="match_parent"
4+
android:orientation="vertical">
5+
6+
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
7+
android:id="@+id/recyclerView"
8+
android:layout_width="match_parent"
9+
android:layout_height="fill_parent"
10+
android:background="@android:color/white"
11+
android:fadeScrollbars="false"
12+
android:scrollbars="vertical" />
13+
14+
<TextView
15+
android:id="@+id/emptyList"
16+
android:layout_width="match_parent"
17+
android:layout_height="match_parent"
18+
android:layout_marginBottom="?attr/actionBarSize"
19+
android:gravity="center"
20+
android:text="@string/empty_list"
21+
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
22+
android:visibility="gone" />
23+
</LinearLayout>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@
7575
<string name="no_message">No messages to receive.</string>
7676
<string name="menu_filter">Filter</string>
7777
<string name="menu_today">Today</string>
78+
<string name="empty_list">Sorry, no messages here.</string>
7879
</resources>

0 commit comments

Comments
 (0)