diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-15 06:45:59 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-15 06:45:59 +0000 |
commit | 8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c (patch) | |
tree | 36368f0962e2b46ff947a873d3efc87eef09e0ea /app/src/main/res/layout | |
parent | 908cd0aaab5ebea29428dd2ad82dc77ed90616aa (diff) | |
download | infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.tar infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.tar.gz infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.tar.bz2 infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.tar.lz infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.tar.xz infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.tar.zst infinity-for-reddit-8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c.zip |
Migrate to ViewPager2 in MainActivity. Make POST_LAYOUT_POPULAR_POST and POST_LAYOUT_ALL_POST legacy settings. Fix post layout cannot be remembered in MainActivity.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/app_bar_main.xml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 981e788a..023ee042 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -46,7 +46,19 @@ </com.google.android.material.appbar.AppBarLayout> - <androidx.viewpager.widget.ViewPager + <!--<com.google.android.material.tabs.TabLayout + android:id="@+id/tab_layout_main_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + app:layout_scrollFlags="scroll|enterAlways" + app:tabGravity="fill" + app:tabIndicatorHeight="3dp" + app:tabMode="fixed" + app:tabRippleColor="?attr/colorControlHighlight" + app:tabUnboundedRipple="false" />--> + + <androidx.viewpager2.widget.ViewPager2 android:id="@+id/view_pager_main_activity" android:layout_width="match_parent" android:layout_height="wrap_content" |