Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/activity_notes_list_view.xml')
-rw-r--r--app/src/main/res/layout/activity_notes_list_view.xml51
1 files changed, 43 insertions, 8 deletions
diff --git a/app/src/main/res/layout/activity_notes_list_view.xml b/app/src/main/res/layout/activity_notes_list_view.xml
index 95d63523..9ad1a561 100644
--- a/app/src/main/res/layout/activity_notes_list_view.xml
+++ b/app/src/main/res/layout/activity_notes_list_view.xml
@@ -26,16 +26,51 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_normal"
- tools:context="it.niedermann.owncloud.notes.android.activity.NotesListViewActivity"
- tools:ignore="MergeRootFrame">
-
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view"
+ tools:context="it.niedermann.owncloud.notes.android.activity.NotesListViewActivity">
+ <FrameLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/bg_highlighted"
- android:scrollbars="vertical" />
+ android:layout_height="match_parent">
+
+ <RelativeLayout
+ android:id="@+id/empty_content_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_above="@id/empty_content_view_title"
+ android:layout_centerHorizontal="true"
+ android:layout_marginBottom="20dp"
+ android:contentDescription="@null"
+ android:src="@mipmap/ic_launcher" />
+
+ <TextView
+ android:id="@+id/empty_content_view_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:text="@string/no_notes_yet"
+ android:textSize="26sp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@+id/empty_content_view_title"
+ android:layout_centerHorizontal="true"
+ android:layout_marginTop="20dp"
+ android:text="@string/no_notes_yet_description" />
+
+ </RelativeLayout>
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/bg_highlighted"
+ android:scrollbars="vertical"
+ tools:listitem="@layout/fragment_notes_list_note_item"/>
+ </FrameLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</LinearLayout>