From 22b0072b26dd268dfbb6b32c90f22036a1d506e7 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 8 Dec 2020 19:41:08 +0800 Subject: Add an bottom app bar and an fab to ViewUserDetailActivity. Hide read posts in ViewUserDetailActivity. --- .../res/layout/activity_view_subreddit_detail.xml | 83 +++------------------- .../main/res/layout/activity_view_user_detail.xml | 15 ++++ .../main/res/layout/bottom_app_bar_other_pages.xml | 66 +++++++++++++++++ 3 files changed, 90 insertions(+), 74 deletions(-) create mode 100644 app/src/main/res/layout/bottom_app_bar_other_pages.xml (limited to 'app/src/main/res') 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 6020b138..529397c8 100644 --- a/app/src/main/res/layout/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -7,6 +7,12 @@ android:id="@+id/coordinator_layout_view_subreddit_detail_activity" tools:application=".Activity.ViewSubredditDetailActivity"> + + - - - - - - - - - - - - - - - - - - - + android:layout_gravity="bottom" /> 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 5886f720..4d86a13c 100644 --- a/app/src/main/res/layout/activity_view_user_detail.xml +++ b/app/src/main/res/layout/activity_view_user_detail.xml @@ -139,4 +139,19 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/bottom_app_bar_other_pages.xml b/app/src/main/res/layout/bottom_app_bar_other_pages.xml new file mode 100644 index 00000000..dd4c9bae --- /dev/null +++ b/app/src/main/res/layout/bottom_app_bar_other_pages.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3