diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-03-27 15:34:11 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-03-27 15:34:11 +0000 |
commit | daa6b06617f3cc2fe189b68a427e91d830462a52 (patch) | |
tree | 9e5ba556f36a33cad60fad5986e5694b6620ebbb /app/src/main/res/layout | |
parent | 7e222091c8ae8619c8f3bed297bb248f07177261 (diff) | |
download | infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.tar infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.tar.gz infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.tar.bz2 infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.tar.lz infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.tar.xz infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.tar.zst infinity-for-reddit-daa6b06617f3cc2fe189b68a427e91d830462a52.zip |
Add a SidebarFragment in ViewSubredditDetailActivity. Fix some UI issues.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_view_subreddit_detail.xml | 21 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_sidebar.xml | 24 |
2 files changed, 44 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml index 3337fc67..c76ada01 100644 --- a/app/src/main/res/layout/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -8,6 +8,12 @@ android:background="?attr/backgroundColor" tools:application=".Activity.ViewSubredditDetailActivity"> + <androidx.viewpager.widget.ViewPager + android:id="@+id/view_pager_view_subreddit_detail_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + <com.google.android.material.appbar.AppBarLayout android:id="@+id/appbar_layout_view_subreddit_detail" android:layout_width="match_parent" @@ -121,9 +127,22 @@ </com.google.android.material.appbar.CollapsingToolbarLayout> + <com.google.android.material.tabs.TabLayout + android:id="@+id/tab_layout_view_subreddit_detail_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:background="?attr/toolbarAndTabBackgroundColor" + app:layout_scrollFlags="scroll|enterAlways" + app:tabGravity="fill" + app:tabMode="fixed" + app:tabIndicatorHeight="3dp" + app:tabRippleColor="?attr/colorControlHighlight" + app:tabUnboundedRipple="false" /> + </com.google.android.material.appbar.AppBarLayout> - <include layout="@layout/content_view_subreddit_detail" /> + <!--<include layout="@layout/content_view_subreddit_detail" />--> <com.google.android.material.bottomappbar.BottomAppBar android:id="@+id/bottom_navigation_view_subreddit_detail_activity" diff --git a/app/src/main/res/layout/fragment_sidebar.xml b/app/src/main/res/layout/fragment_sidebar.xml new file mode 100644 index 00000000..118bbd0e --- /dev/null +++ b/app/src/main/res/layout/fragment_sidebar.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:application="ml.docilealligator.infinityforreddit.Fragment.SidebarFragment"> + + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_sidebar_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/markdown_recycler_view_sidebar_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="16dp" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + +</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file |