aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
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
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')
-rw-r--r--app/src/main/res/drawable/ic_post_layout_black_24dp.xml9
-rw-r--r--app/src/main/res/drawable/ic_refresh_black_24dp.xml9
-rw-r--r--app/src/main/res/layout/app_bar_main.xml17
3 files changed, 24 insertions, 11 deletions
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 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M3,5v14h19L22,5L3,5zM5,7h15v4L5,11L5,7zM5,17v-4h4v4L5,17zM11,17v-4h9v4h-9z"
+ android:fillColor="#000000"/>
+</vector>
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 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z"
+ android:fillColor="#000000"/>
+</vector>
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>