aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_post_text.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-02-18 12:39:15 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-02-18 12:39:15 +0000
commitd4d3db83437c97c17aaed1fccf0939c91ed4abdd (patch)
tree5dd1d5193cd66cd90ea37d28d4d9d70f4b1f4b7a /app/src/main/res/layout/activity_post_text.xml
parenta28d022cde3d2d6e0f00f937acfcefb653e1199d (diff)
downloadinfinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.tar
infinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.tar.gz
infinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.tar.bz2
infinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.tar.lz
infinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.tar.xz
infinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.tar.zst
infinity-for-reddit-d4d3db83437c97c17aaed1fccf0939c91ed4abdd.zip
Implement immersive mode in many other activities.
Diffstat (limited to 'app/src/main/res/layout/activity_post_text.xml')
-rw-r--r--app/src/main/res/layout/activity_post_text.xml24
1 files changed, 19 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_post_text.xml b/app/src/main/res/layout/activity_post_text.xml
index 7cabdf0b..98dc7113 100644
--- a/app/src/main/res/layout/activity_post_text.xml
+++ b/app/src/main/res/layout/activity_post_text.xml
@@ -9,23 +9,37 @@
tools:application=".PostTextActivity">
<com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_layout_post_text_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/toolbarAndTabBackgroundColor"
android:theme="@style/AppTheme.AppBarOverlay">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar_post_text_activity"
+ <com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:popupTheme="@style/AppTheme.PopupOverlay"
- app:navigationIcon="?attr/homeAsUpIndicator" />
+ android:layout_height="match_parent"
+ app:layout_scrollFlags="scroll|enterAlways"
+ app:titleEnabled="false"
+ app:toolbarId="@+id/toolbar_subscribed_subreddits_multiselection_activity">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar_post_text_activity"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ app:layout_collapseMode="pin"
+ app:layout_scrollFlags="scroll|enterAlways"
+ app:popupTheme="@style/AppTheme.PopupOverlay"
+ app:navigationIcon="?attr/homeAsUpIndicator" />
+
+ </com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
+ android:id="@+id/nested_scroll_view_post_text_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:clipToPadding="false"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout