summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-10-02 15:16:55 +0300
committerAndrew Dolgov <[email protected]>2020-10-02 15:16:55 +0300
commit39d707061fc481ca8163444f224339fe6b2314b1 (patch)
treed0da14ab032ef09260cd289842320970a2e6d4ac /org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
parent1a1051caee2eeb2ea265c3db7f033731252c9c49 (diff)
use coordinator layout / appbarlayout to deal with collapsing toolbars and article header
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout/activity_master_phone.xml')
-rw-r--r--org.fox.ttrss/src/main/res/layout/activity_master_phone.xml26
1 files changed, 24 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml b/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
index de3db618..d63d9fb9 100644
--- a/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
+++ b/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
@@ -5,7 +5,29 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
- <FrameLayout
+ <androidx.coordinatorlayout.widget.CoordinatorLayout
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <include layout="@layout/toolbar" android:id="@+id/toolbar" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <FrameLayout
+ android:id="@+id/headlines_fragment"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?headlinesBackground" />
+
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+ <!-- <FrameLayout
android:fitsSystemWindows="true"
android:animateLayoutChanges="true"
android:layout_width="match_parent"
@@ -19,7 +41,7 @@
<include layout="@layout/toolbar" android:id="@+id/toolbar" />
- </FrameLayout>
+ </FrameLayout> -->
<org.fox.ttrss.util.ScrimInsetsFrameLayout
xmlns:app="http://schemas.android.com/apk/res-auto"