-
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
increase width of tab indicator (#4849)
There have been multiple complaints by users that the new Material 3 tab indicator is too small. Setting `app:tabIndicatorFullWidth="true"` alone looks weird imho, so I additionally added some padding. cc @mcclure Before / After ![before](https://github.com/user-attachments/assets/2234aed0-c558-4318-8cd5-fdb39af436a2) ![after](https://github.com/user-attachments/assets/1d806ad1-139c-41ed-9939-bc45f66d95c0)
- Loading branch information
Showing
5 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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="16dp" | ||
android:right="16dp"> | ||
<shape | ||
android:shape="rectangle"> | ||
<!-- Color is assigned programmatically with the value of "tabIndicatorColor". --> | ||
<solid android:color="@android:color/white"/> | ||
<corners | ||
android:bottomLeftRadius="0dp" | ||
android:bottomRightRadius="0dp" | ||
android:topLeftRadius="3dp" | ||
android:topRightRadius="3dp"/> | ||
<size android:height="3dp"/> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters