diff options
-rw-r--r-- | res/layout/directory_header.xml | 3 | ||||
-rw-r--r-- | res/values-v31/styles.xml | 24 | ||||
-rw-r--r-- | res/values/styles_text.xml | 7 |
3 files changed, 32 insertions, 2 deletions
diff --git a/res/layout/directory_header.xml b/res/layout/directory_header.xml index 6a222d5c3..791af999e 100644 --- a/res/layout/directory_header.xml +++ b/res/layout/directory_header.xml @@ -72,8 +72,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" - android:textAppearance="@style/SortTitle" - android:textAllCaps="true" + android:textAppearance="@style/SectionHeader" android:maxLines="1" android:ellipsize="end" android:gravity="start|center_vertical"/> diff --git a/res/values-v31/styles.xml b/res/values-v31/styles.xml new file mode 100644 index 000000000..bcdfa7287 --- /dev/null +++ b/res/values-v31/styles.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2021 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<resources> + <style name="SectionHeader" parent="@*android:style/TextAppearance.DeviceDefault.Medium"> + <item name="android:textColor">?android:attr/textColorPrimary</item> + <item name="fontFamily">@string/config_fontFamilyMedium</item> + <item name="android:textSize">12sp</item> + </style> +</resources> diff --git a/res/values/styles_text.xml b/res/values/styles_text.xml index d41cd91fd..6c3805921 100644 --- a/res/values/styles_text.xml +++ b/res/values/styles_text.xml @@ -19,6 +19,13 @@ <item name="android:textSize">11sp</item> </style> + <style name="SectionHeader" parent="@*android:style/TextAppearance.DeviceDefault.Medium"> + <item name="android:textColor">?android:attr/textColorPrimary</item> + <item name="android:textAllCaps">true</item> + <item name="fontFamily">@string/config_fontFamilyMedium</item> + <item name="android:textSize">12sp</item> + </style> + <style name="SortList" parent="@style/TextAppearance.AppCompat.Subhead"> <item name="android:textColor">@color/sort_list_text</item> <item name="fontFamily">@string/config_fontFamilyMedium</item> |