aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_post_image.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-01 08:30:33 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-01 08:30:33 +0000
commit192d64f6bcd1d606c7474af43ebd5073f76fbb7f (patch)
tree04fae93e8d148901899786921718c4cca2eab9a0 /app/src/main/res/layout/activity_post_image.xml
parent152a6a280ace51a09ed55fe1e57c2f9168a59c95 (diff)
downloadinfinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.tar
infinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.tar.gz
infinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.tar.bz2
infinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.tar.lz
infinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.tar.xz
infinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.tar.zst
infinity-for-reddit-192d64f6bcd1d606c7474af43ebd5073f76fbb7f.zip
Still prepare to support multiple themes.
Diffstat (limited to 'app/src/main/res/layout/activity_post_image.xml')
-rw-r--r--app/src/main/res/layout/activity_post_image.xml20
1 files changed, 15 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_post_image.xml b/app/src/main/res/layout/activity_post_image.xml
index e4acbe5c..5a6bb303 100644
--- a/app/src/main/res/layout/activity_post_image.xml
+++ b/app/src/main/res/layout/activity_post_image.xml
@@ -9,17 +9,27 @@
tools:application=".PostImageActivity">
<com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_layout_post_image_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_image_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_post_image_activity">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar_post_image_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>