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" />