aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/list_editor.xml
diff options
context:
space:
mode:
Diffstat (limited to 'WordPress/src/main/res/layout/list_editor.xml')
-rw-r--r--WordPress/src/main/res/layout/list_editor.xml64
1 files changed, 64 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/list_editor.xml b/WordPress/src/main/res/layout/list_editor.xml
new file mode 100644
index 000000000..47708d5d5
--- /dev/null
+++ b/WordPress/src/main/res/layout/list_editor.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/empty_view"
+ android:layout_centerInParent="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="@dimen/margin_extra_large"
+ android:text="@string/site_settings_list_editor_no_items_text"
+ android:textColor="@color/grey_lighten_10"
+ android:textSize="@dimen/text_sz_large"
+ android:visibility="gone" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/list_editor_header_text"
+ android:layout_marginTop="?android:attr/actionBarSize"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="@dimen/margin_extra_large"
+ android:textSize="@dimen/text_sz_small"
+ android:textColor="@color/grey_darken_10" />
+
+ <View
+ android:background="@color/divider_grey"
+ android:layout_alignWithParentIfMissing="true"
+ android:layout_below="@+id/list_editor_header_text"
+ android:layout_height="@dimen/list_divider_height"
+ android:layout_width="match_parent" />
+
+ <org.wordpress.android.ui.prefs.EmptyViewRecyclerView
+ android:id="@android:id/list"
+ android:layout_below="@+id/list_editor_header_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <!-- CoordinatorLayout required: https://code.google.com/p/android/issues/detail?id=175330 -->
+ <android.support.design.widget.CoordinatorLayout
+ android:id="@+id/coordinator"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/fab_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end|bottom"
+ android:layout_marginBottom="@dimen/fab_margin"
+ android:layout_marginRight="@dimen/fab_margin"
+ android:layout_marginEnd="@dimen/fab_margin"
+ app:srcCompat="@drawable/ic_add_white_24dp"
+ android:contentDescription="@string/add"
+ app:borderWidth="0dp"
+ app:rippleColor="@color/fab_pressed" />
+
+ </android.support.design.widget.CoordinatorLayout>
+
+</RelativeLayout>