rotate tab indicator when tab bar is at the bottom (#4793)

Looks way better imho

Before

![before](https://github.com/user-attachments/assets/5888e2ee-c342-4b06-a834-50f9d07951b4)


After

![after](https://github.com/user-attachments/assets/024e0c98-1e0a-4a4d-82f7-a7ede657ad25)
This commit is contained in:
Konrad Pozniak 2024-12-06 11:18:20 +01:00 committed by GitHub
commit 40124a8258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:left="2dp"
android:right="2dp">
<shape
android:shape="rectangle">
<!-- Color is assigned programmatically with the value of "tabIndicatorColor". -->
<solid android:color="@android:color/white"/>
<corners
android:bottomLeftRadius="3dp"
android:bottomRightRadius="3dp"
android:topLeftRadius="0dp"
android:topRightRadius="0dp"/>
<size android:height="3dp"/>
</shape>
</item>
</layer-list>

View file

@ -81,6 +81,7 @@
android:background="?attr/colorSurface"
app:tabGravity="fill"
app:tabIndicatorGravity="top"
app:tabIndicator="@drawable/tab_indicator_bottom"
app:tabMode="scrollable"
app:tabPaddingTop="0dp" />