From 90396153f4cee234dddfaa16b8892f68ba4357e8 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 15 Mar 2020 12:56:00 -0400 Subject: [PATCH] Tweak tab indicator style --- app/src/main/res/drawable/tab_indicator.xml | 7 +++++++ app/src/main/res/layout/main_activity.xml | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 app/src/main/res/drawable/tab_indicator.xml diff --git a/app/src/main/res/drawable/tab_indicator.xml b/app/src/main/res/drawable/tab_indicator.xml new file mode 100644 index 000000000..10b03769d --- /dev/null +++ b/app/src/main/res/drawable/tab_indicator.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index cbb080b38..d79ae0914 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -29,6 +29,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:tabGravity="center" + app:tabIndicator="@drawable/tab_indicator" + app:tabIndicatorFullWidth="false" + app:tabIndicatorHeight="3dp" app:tabInlineLabel="true" app:tabMinWidth="75dp" app:tabMode="scrollable" />