From 7cf90856d6120e20a1c39848e0e4e2cbb40f1a67 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 8 Dec 2020 23:46:44 +0800 Subject: Make the Bottom App Bar a standalone layout. --- .../res/layout/activity_view_subreddit_detail.xml | 4 +- .../main/res/layout/activity_view_user_detail.xml | 4 +- app/src/main/res/layout/app_bar_main.xml | 68 ++-------------------- .../res/layout/bottom_app_bar_other_activities.xml | 66 +++++++++++++++++++++ .../main/res/layout/bottom_app_bar_other_pages.xml | 66 --------------------- 5 files changed, 74 insertions(+), 134 deletions(-) create mode 100644 app/src/main/res/layout/bottom_app_bar_other_activities.xml delete 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 529397c8..ef26b762 100644 --- a/app/src/main/res/layout/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -173,7 +173,7 @@ @@ -185,6 +185,6 @@ android:layout_margin="@dimen/fab_margin" android:visibility="gone" app:tint="@android:color/white" - app:layout_anchor="@id/bottom_navigation_view_subreddit_detail_activity" /> + app:layout_anchor="@id/bottom_app_bar_bottom_app_bar" /> \ No newline at end of file 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 4d86a13c..3ace2e08 100644 --- a/app/src/main/res/layout/activity_view_user_detail.xml +++ b/app/src/main/res/layout/activity_view_user_detail.xml @@ -140,7 +140,7 @@ @@ -152,6 +152,6 @@ android:layout_margin="@dimen/fab_margin" android:visibility="gone" app:tint="@android:color/white" - app:layout_anchor="@id/bottom_navigation_view_subreddit_detail_activity" /> + app:layout_anchor="@id/bottom_app_bar_bottom_app_bar" /> \ No newline at end of file diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index e28e8138..c17ef9f7 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -51,71 +51,11 @@ android:layout_height="wrap_content" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> - - - - - - - - - - - - - - - - - + android:layout_gravity="bottom" /> + app:layout_anchor="@id/bottom_app_bar_bottom_app_bar" /> diff --git a/app/src/main/res/layout/bottom_app_bar_other_activities.xml b/app/src/main/res/layout/bottom_app_bar_other_activities.xml new file mode 100644 index 00000000..fa1d886f --- /dev/null +++ b/app/src/main/res/layout/bottom_app_bar_other_activities.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + \ 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 deleted file mode 100644 index dd4c9bae..00000000 --- a/app/src/main/res/layout/bottom_app_bar_other_pages.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3