aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-25 08:35:27 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-25 08:35:27 +0000
commitf33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad (patch)
tree0a45bc0c51d1932da22e07bc6dab28d2216cf9d8 /app/src/main/res/layout
parent1b983c1ff84fc9b8d27830d6801ad63e99d603fa (diff)
downloadinfinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.tar
infinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.tar.gz
infinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.tar.bz2
infinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.tar.lz
infinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.tar.xz
infinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.tar.zst
infinity-for-reddit-f33d4dbc61ef2f7967f9bf3ee80b2644eaf54aad.zip
Customizing the bottom app bar in MainActivity is available (Changing option count is not available right now.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/app_bar_main.xml17
1 files changed, 6 insertions, 11 deletions
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" />
<com.google.android.material.bottomappbar.BottomAppBar
- android:id="@+id/bottom_navigation_main_activity"
+ android:id="@+id/bottom_app_bar_main_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
@@ -78,25 +78,23 @@
android:weightSum="5">
<ImageView
- android:id="@+id/subscriptions_bottom_app_bar_main_activity"
+ android:id="@+id/option_1_bottom_app_bar_main_activity"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:paddingTop="8dp"
android:paddingBottom="8dp"
- android:src="@drawable/ic_subscritptions_bottom_app_bar_24dp"
android:background="?attr/selectableItemBackgroundBorderless" />
<ImageView
- android:id="@+id/multi_reddit_bottom_app_bar_main_activity"
+ android:id="@+id/option_2_bottom_app_bar_main_activity"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:paddingTop="8dp"
android:paddingBottom="8dp"
- android:src="@drawable/ic_multi_reddit_24dp"
android:background="?attr/selectableItemBackgroundBorderless" />
<TextView
@@ -106,18 +104,17 @@
android:background="@android:color/transparent"/>
<ImageView
- android:id="@+id/message_bottom_app_bar_main_activity"
+ android:id="@+id/option_3_bottom_app_bar_main_activity"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:paddingTop="8dp"
android:paddingBottom="8dp"
- android:src="@drawable/ic_inbox_24dp"
android:background="?attr/selectableItemBackgroundBorderless" />
<ImageView
- android:id="@+id/profile_bottom_app_bar_main_activity"
+ android:id="@+id/option_4_bottom_app_bar_main_activity"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@@ -125,7 +122,6 @@
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:gravity="center"
- android:src="@drawable/ic_account_circle_24dp"
android:background="?attr/selectableItemBackgroundBorderless" />
</LinearLayout>
@@ -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" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>