From e424ae9d231a3d3c33b866309dbac1b79e34e661 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 6 Dec 2024 07:54:00 +0100 Subject: [PATCH] rotate tab indicator when tab bar is at the bottom --- .../main/res/drawable/tab_indicator_bottom.xml | 18 ++++++++++++++++++ app/src/main/res/layout/activity_main.xml | 1 + 2 files changed, 19 insertions(+) create mode 100644 app/src/main/res/drawable/tab_indicator_bottom.xml diff --git a/app/src/main/res/drawable/tab_indicator_bottom.xml b/app/src/main/res/drawable/tab_indicator_bottom.xml new file mode 100644 index 0000000000..82ce65a388 --- /dev/null +++ b/app/src/main/res/drawable/tab_indicator_bottom.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index f12bfc6470..b04c924954 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -80,6 +80,7 @@ android:layout_height="?attr/actionBarSize" app:tabGravity="fill" app:tabIndicatorGravity="top" + app:tabIndicator="@drawable/tab_indicator_bottom" app:tabMode="scrollable" app:tabPaddingTop="0dp" />