diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-11 04:32:41 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-11 04:32:41 +0000 |
commit | c2f2fc1b39b5ccfe147062cb3be8f2236e705f48 (patch) | |
tree | bdec59d9fc981a134b3567841e497b1afdfab165 /app/src/main/res | |
parent | 413a18f6d39bf274369d7a1ee3279e20d3a608a7 (diff) | |
download | infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.tar infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.tar.gz infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.tar.bz2 infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.tar.lz infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.tar.xz infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.tar.zst infinity-for-reddit-c2f2fc1b39b5ccfe147062cb3be8f2236e705f48.zip |
Transparent navigation bar and status bar in ViewPostDetailActivity (All these changes including in other activities are only available for Android version >= 8.1).
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/activity_view_post_detail.xml | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index 3fef4769..3a010dc3 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -8,16 +8,26 @@ tools:application=".ViewPostDetailActivity"> <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appbar_layout_view_post_detail_activity" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar_view_post_detail_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_view_post_detail_activity"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar_view_post_detail_activity" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator" /> + + </com.google.android.material.appbar.CollapsingToolbarLayout> </com.google.android.material.appbar.AppBarLayout> @@ -32,6 +42,7 @@ android:id="@+id/recycler_view_view_post_detail" android:layout_width="match_parent" android:layout_height="wrap_content" + android:clipToPadding="false" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> <LinearLayout |