summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-05-03 11:06:04 +0200
committerByteHamster <info@bytehamster.com>2019-05-03 11:06:04 +0200
commit06c15fd9e6d4335583512377f1b8401b9ea3ccf6 (patch)
tree70b02affac79530ac9eaef083c0afee2da28e3f2 /app/src/main/res
parent7a921e0024f0b82653084d91f853fadfe97f9929 (diff)
downloadAntennaPod-06c15fd9e6d4335583512377f1b8401b9ea3ccf6.zip
Simplify empty view handling on recycler views
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/all_episodes_fragment.xml4
-rw-r--r--app/src/main/res/layout/empty_view_layout.xml1
-rw-r--r--app/src/main/res/layout/queue_fragment.xml4
3 files changed, 1 insertions, 8 deletions
diff --git a/app/src/main/res/layout/all_episodes_fragment.xml b/app/src/main/res/layout/all_episodes_fragment.xml
index 099216007..89f900a1f 100644
--- a/app/src/main/res/layout/all_episodes_fragment.xml
+++ b/app/src/main/res/layout/all_episodes_fragment.xml
@@ -17,10 +17,6 @@
tools:itemCount="13"
tools:listitem="@layout/new_episodes_listitem" />
- <include
- android:id="@+id/emptyView"
- layout="@layout/empty_view_layout"/>
-
<ProgressBar
android:id="@+id/progLoading"
android:layout_width="wrap_content"
diff --git a/app/src/main/res/layout/empty_view_layout.xml b/app/src/main/res/layout/empty_view_layout.xml
index 051773e51..84b171af0 100644
--- a/app/src/main/res/layout/empty_view_layout.xml
+++ b/app/src/main/res/layout/empty_view_layout.xml
@@ -4,6 +4,7 @@
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
+ android:layout_centerInParent="true"
xmlns:tools="http://schemas.android.com/tools">
<TextView
diff --git a/app/src/main/res/layout/queue_fragment.xml b/app/src/main/res/layout/queue_fragment.xml
index cf00f2b1b..85b0df58c 100644
--- a/app/src/main/res/layout/queue_fragment.xml
+++ b/app/src/main/res/layout/queue_fragment.xml
@@ -27,10 +27,6 @@
android:layout_below="@id/divider"
android:scrollbars="vertical"/>
- <include
- android:id="@+id/emptyView"
- layout="@layout/empty_view_layout"/>
-
<ProgressBar
android:id="@+id/progLoading"
android:layout_width="wrap_content"