From f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 25 Sep 2020 16:35:27 +0800 Subject: Customizing the bottom app bar in MainActivity is available (Changing option count is not available right now. --- app/src/main/res/drawable/ic_post_layout_black_24dp.xml | 9 +++++++++ app/src/main/res/drawable/ic_refresh_black_24dp.xml | 9 +++++++++ app/src/main/res/layout/app_bar_main.xml | 17 ++++++----------- 3 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 app/src/main/res/drawable/ic_post_layout_black_24dp.xml create mode 100644 app/src/main/res/drawable/ic_refresh_black_24dp.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/ic_post_layout_black_24dp.xml b/app/src/main/res/drawable/ic_post_layout_black_24dp.xml new file mode 100644 index 00000000..bca9e973 --- /dev/null +++ b/app/src/main/res/drawable/ic_post_layout_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_refresh_black_24dp.xml b/app/src/main/res/drawable/ic_refresh_black_24dp.xml new file mode 100644 index 00000000..528662cf --- /dev/null +++ b/app/src/main/res/drawable/ic_refresh_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 5272b575..3f0b5c20 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -64,7 +64,7 @@ app:layout_behavior="@string/appbar_scrolling_view_behavior" /> @@ -137,8 +133,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:visibility="gone" - app:srcCompat="@drawable/ic_add_day_night_24dp" app:tint="@android:color/white" - app:layout_anchor="@id/bottom_navigation_main_activity" /> + app:layout_anchor="@id/bottom_app_bar_main_activity" /> -- cgit v1.2.3