diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-07-21 16:09:40 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-07-21 16:09:40 +0000 |
commit | 2f15543f913da5c9100ce114f4268c0576b70a3e (patch) | |
tree | 656429d2b712ffa391c7e7eb6de633a7f3408bce /app/src/main/res/layout/activity_view_user_detail.xml | |
parent | 0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0 (diff) | |
download | infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.tar infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.tar.gz infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.tar.bz2 infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.tar.lz infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.tar.xz infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.tar.zst infinity-for-reddit-2f15543f913da5c9100ce114f4268c0576b70a3e.zip |
Add a ViewPager in ViewUserDetailActivity to display comments. Fixed searching posts without specifying subreddit will result in no posts. Use another api endpoint for fetching posts in ViewUserDetailActivity.
Diffstat (limited to 'app/src/main/res/layout/activity_view_user_detail.xml')
-rw-r--r-- | app/src/main/res/layout/activity_view_user_detail.xml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_view_user_detail.xml b/app/src/main/res/layout/activity_view_user_detail.xml index fac8a2ca..67beecd2 100644 --- a/app/src/main/res/layout/activity_view_user_detail.xml +++ b/app/src/main/res/layout/activity_view_user_detail.xml @@ -7,6 +7,12 @@ android:id="@+id/coordinator_layout_view_user_detail_activity" tools:context=".ViewUserDetailActivity"> + <androidx.viewpager.widget.ViewPager + android:id="@+id/view_pager_view_user_detail_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + <com.google.android.material.appbar.AppBarLayout android:id="@+id/appbar_layout_view_user_detail" android:layout_width="match_parent" @@ -94,8 +100,20 @@ </com.google.android.material.appbar.CollapsingToolbarLayout> + <com.google.android.material.tabs.TabLayout + android:id="@+id/tab_layout_view_user_detail_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + 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_user_detail" /> + <!--<include layout="@layout/content_view_user_detail" />--> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file |