aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-08-11 14:06:47 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-08-11 14:06:47 +0000
commita5197d5e944b69b276e4ec29d5d0c99477ad397f (patch)
tree973b389b0bf76a70569ca77fe20ff15311cf654a /app/src/main/res/layout
parent4565aa201162cf25a79e416a745957ca2914578c (diff)
downloadinfinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.tar
infinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.tar.gz
infinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.tar.bz2
infinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.tar.lz
infinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.tar.xz
infinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.tar.zst
infinity-for-reddit-a5197d5e944b69b276e4ec29d5d0c99477ad397f.zip
Use ViewPager2 in InboxActivity.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_inbox.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_inbox.xml b/app/src/main/res/layout/activity_inbox.xml
index b65c0d89..256fee87 100644
--- a/app/src/main/res/layout/activity_inbox.xml
+++ b/app/src/main/res/layout/activity_inbox.xml
@@ -26,6 +26,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
+ app:layout_collapseMode="pin"
+ app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/AppTheme.PopupOverlay"
app:navigationIcon="?attr/homeAsUpIndicator" />
@@ -45,7 +47,7 @@
</com.google.android.material.appbar.AppBarLayout>
- <androidx.viewpager.widget.ViewPager
+ <androidx.viewpager2.widget.ViewPager2
android:id="@+id/view_pager_inbox_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"