summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shubham Basu <basushubham@google.com> 2021-06-16 22:34:20 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-06-16 22:34:20 +0000
commit47b11902b47232c9b83b08680f9d4f6f0bdbdb9c (patch)
tree6c0e90b5ee421f4c1371053e1563405d20b44629
parentc04405ecaa6f691e13777072d34f1e3a63e69964 (diff)
parentb609eca603b86be2d429493915e77db773968420 (diff)
Merge "adding matrial next overline text style for subheader" into sc-dev
-rw-r--r--res/layout/directory_header.xml3
-rw-r--r--res/values-v31/styles.xml24
-rw-r--r--res/values/styles_text.xml7
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>