diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-03-01 08:30:33 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-03-01 08:30:33 +0000 |
commit | 192d64f6bcd1d606c7474af43ebd5073f76fbb7f (patch) | |
tree | 04fae93e8d148901899786921718c4cca2eab9a0 /app/src/main/res/layout/activity_comment.xml | |
parent | 152a6a280ace51a09ed55fe1e57c2f9168a59c95 (diff) | |
download | infinity-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 '')
-rw-r--r-- | app/src/main/res/layout/activity_comment.xml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml index 45023334..c30536c1 100644 --- a/app/src/main/res/layout/activity_comment.xml +++ b/app/src/main/res/layout/activity_comment.xml @@ -9,17 +9,27 @@ tools:application=".CommentActivity"> <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appbar_layout_comment_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_comment_activity" + <com.google.android.material.appbar.CollapsingToolbarLayout android:layout_width="match_parent" - android:layout_height="?attr/actionBarSize" - app:navigationIcon="?attr/homeAsUpIndicator" - app:popupTheme="@style/AppTheme.PopupOverlay" /> + android:layout_height="match_parent" + app:layout_scrollFlags="scroll|enterAlways" + app:titleEnabled="false" + app:toolbarId="@+id/toolbar_comment_activity"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar_comment_activity" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> + + </com.google.android.material.appbar.CollapsingToolbarLayout> </com.google.android.material.appbar.AppBarLayout> |