summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chaohui Wang <chaohuiw@google.com> 2022-03-09 10:59:32 +0800
committer Chaohui Wang <chaohuiw@google.com> 2022-03-09 10:59:39 +0800
commitffd09aeffb5ea08a367941137cea7d24e8ccf795 (patch)
tree66b8707f57b2130d730be1defaee42f37e7c8b12
parent0e7bcd27bdbe78d84a2827804e70bd1ebb72a29f (diff)
Fix tab in Settings and landscape mode.
Before: appear very small https://screenshot.googleplex.com/3ZiwMxggzPkBBhk After: https://screenshot.googleplex.com/4ocrfE2ua4fqVoE Bug: 222767739 Test: Manual on Pixel Change-Id: I35ad336cafc61be131d3974bb75409f5fe75a80c
-rw-r--r--packages/SettingsLib/res/values-v31/styles.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SettingsLib/res/values-v31/styles.xml b/packages/SettingsLib/res/values-v31/styles.xml
index 343de2cdf47a..0b703c99884b 100644
--- a/packages/SettingsLib/res/values-v31/styles.xml
+++ b/packages/SettingsLib/res/values-v31/styles.xml
@@ -15,7 +15,8 @@
limitations under the License.
-->
<resources>
- <style name="SettingsLibTabsTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title">
+ <style name="SettingsLibTabsTextAppearance"
+ parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title">
<item name="android:textSize">16sp</item>
</style>
@@ -25,6 +26,7 @@
<item name="android:layout_height">48dp</item>
<item name="android:layout_marginStart">?android:attr/listPreferredItemPaddingStart</item>
<item name="android:layout_marginEnd">?android:attr/listPreferredItemPaddingEnd</item>
+ <item name="tabMaxWidth">0dp</item>
<item name="tabGravity">fill</item>
<item name="tabBackground">@drawable/settingslib_tabs_background</item>
<item name="tabIndicator">@drawable/settingslib_tabs_indicator_background</item>