From 3212f0194fc6e70a0f9d24e951a72e3b643f3931 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Thu, 24 Nov 2022 15:46:11 +0100 Subject: [PATCH] fix thread view on tablets (#2925) --- .../res/layout-sw640dp/fragment_view_thread.xml | 14 +++++++------- app/src/main/res/layout/fragment_view_thread.xml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/main/res/layout-sw640dp/fragment_view_thread.xml b/app/src/main/res/layout-sw640dp/fragment_view_thread.xml index ec023062..0c661b0b 100644 --- a/app/src/main/res/layout-sw640dp/fragment_view_thread.xml +++ b/app/src/main/res/layout-sw640dp/fragment_view_thread.xml @@ -14,10 +14,10 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - app:title="@string/title_view_thread" - app:navigationIcon="?attr/homeAsUpIndicator" + app:menu="@menu/view_thread_toolbar" app:navigationContentDescription="@string/abc_action_bar_up_description" - app:menu="@menu/view_thread_toolbar" /> + app:navigationIcon="?attr/homeAsUpIndicator" + app:title="@string/title_view_thread" /> @@ -25,8 +25,8 @@ android:id="@+id/swipeRefreshLayout" android:layout_width="640dp" android:layout_height="match_parent" - app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" - android:layout_gravity="center_horizontal"> + android:layout_gravity="center_horizontal|top" + app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> + android:layout_gravity="center" + android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_view_thread.xml b/app/src/main/res/layout/fragment_view_thread.xml index b00fa7f8..faa4e421 100644 --- a/app/src/main/res/layout/fragment_view_thread.xml +++ b/app/src/main/res/layout/fragment_view_thread.xml @@ -14,10 +14,10 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - app:title="@string/title_view_thread" - app:navigationIcon="?attr/homeAsUpIndicator" + app:menu="@menu/view_thread_toolbar" app:navigationContentDescription="@string/abc_action_bar_up_description" - app:menu="@menu/view_thread_toolbar" /> + app:navigationIcon="?attr/homeAsUpIndicator" + app:title="@string/title_view_thread" /> @@ -25,8 +25,8 @@ android:id="@+id/swipeRefreshLayout" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" - android:layout_gravity="top"> + android:layout_gravity="top" + app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> + android:layout_gravity="center" + android:visibility="gone" />