From 8ab1b7fd8f464cc7bda061c36e0281a673d73d68 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Tue, 27 Jun 2017 22:35:52 +0200 Subject: [PATCH] Fix loading and retry positioning --- app/src/main/res/layout/fragment_channel.xml | 26 +++------------- app/src/main/res/layout/fragment_search.xml | 31 +++++-------------- .../main/res/layout/fragment_video_detail.xml | 22 ++----------- .../main/res/layout/loading_error_retry.xml | 26 ++++++++++++++++ 4 files changed, 40 insertions(+), 65 deletions(-) create mode 100644 app/src/main/res/layout/loading_error_retry.xml diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml index 950761b77..03e561a79 100644 --- a/app/src/main/res/layout/fragment_channel.xml +++ b/app/src/main/res/layout/fragment_channel.xml @@ -1,6 +1,5 @@ - + tools:listitem="@layout/stream_item" /> - - - - + android:layout_gravity="center" /> diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml index 4608aa8fa..a779a18e0 100644 --- a/app/src/main/res/layout/fragment_search.xml +++ b/app/src/main/res/layout/fragment_search.xml @@ -1,13 +1,11 @@ - + android:focusableInTouchMode="true"> + tools:listitem="@layout/stream_item" /> - - - - - + android:layout_gravity="center_vertical" /> + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_video_detail.xml b/app/src/main/res/layout/fragment_video_detail.xml index 0006d0004..7e7fff952 100644 --- a/app/src/main/res/layout/fragment_video_detail.xml +++ b/app/src/main/res/layout/fragment_video_detail.xml @@ -364,26 +364,8 @@ - - - - - + + diff --git a/app/src/main/res/layout/loading_error_retry.xml b/app/src/main/res/layout/loading_error_retry.xml new file mode 100644 index 000000000..081dc3e6d --- /dev/null +++ b/app/src/main/res/layout/loading_error_retry.xml @@ -0,0 +1,26 @@ + + + + + + + + \ No newline at end of file