aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-04-22 03:04:33 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-04-22 03:04:33 +0000
commitb598da636053154670642ec326b104c9a11914d2 (patch)
tree983395b6d8f79000c5e7fd80f7ebab3dad1716dc /app/src/main/res/layout
parent7d3f23473546e151977c52f5e073c7341ff59fbc (diff)
downloadinfinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.tar
infinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.tar.gz
infinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.tar.bz2
infinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.tar.lz
infinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.tar.xz
infinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.tar.zst
infinity-for-reddit-b598da636053154670642ec326b104c9a11914d2.zip
Start adding support for online themes.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_account_saved_thing.xml3
-rw-r--r--app/src/main/res/layout/activity_custom_theme_listing.xml19
-rw-r--r--app/src/main/res/layout/fragment_custom_theme_listing.xml16
3 files changed, 33 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_account_saved_thing.xml b/app/src/main/res/layout/activity_account_saved_thing.xml
index f6660c4b..5687b205 100644
--- a/app/src/main/res/layout/activity_account_saved_thing.xml
+++ b/app/src/main/res/layout/activity_account_saved_thing.xml
@@ -50,7 +50,6 @@
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/account_saved_thing_view_pager_2"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+ android:layout_height="match_parent" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/activity_custom_theme_listing.xml b/app/src/main/res/layout/activity_custom_theme_listing.xml
index 57168d04..c694b6c2 100644
--- a/app/src/main/res/layout/activity_custom_theme_listing.xml
+++ b/app/src/main/res/layout/activity_custom_theme_listing.xml
@@ -26,18 +26,31 @@
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" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
+ <com.google.android.material.tabs.TabLayout
+ android:id="@+id/tab_layout_customize_theme_listing_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" />
+
</com.google.android.material.appbar.AppBarLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_customize_theme_listing_activity"
+ <androidx.viewpager2.widget.ViewPager2
+ android:id="@+id/view_pager_2_customize_theme_listing_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
- app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
diff --git a/app/src/main/res/layout/fragment_custom_theme_listing.xml b/app/src/main/res/layout/fragment_custom_theme_listing.xml
new file mode 100644
index 00000000..4df0fcc2
--- /dev/null
+++ b/app/src/main/res/layout/fragment_custom_theme_listing.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ tools:context=".fragments.CustomThemeListingFragment">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view_customize_theme_listing_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+</FrameLayout> \ No newline at end of file