summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alexandre Elias <aelias@google.com> 2022-05-18 18:55:44 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-05-18 18:55:44 +0000
commite29e536b0f0421b9882ae48894dfc3ffd81b723c (patch)
treebaff0b8acf018975d85592dd25c9424ac2747c0a
parent0a6a4a1078d17537a392c6bd78cb21e32c5f2005 (diff)
parent6358f8ba258a837c906d33257782742c4e92e19b (diff)
Merge "Improve SearchView & secondary text accessibility" into tm-dev-plus-aosp
-rw-r--r--core/res/res/color/hint_foreground_material_dark.xml6
-rw-r--r--core/res/res/color/hint_foreground_material_light.xml6
-rw-r--r--core/res/res/layout/search_view.xml4
-rw-r--r--core/res/res/values/colors_material.xml8
4 files changed, 5 insertions, 19 deletions
diff --git a/core/res/res/color/hint_foreground_material_dark.xml b/core/res/res/color/hint_foreground_material_dark.xml
index 5cc955952524..66fcb041dd7a 100644
--- a/core/res/res/color/hint_foreground_material_dark.xml
+++ b/core/res/res/color/hint_foreground_material_dark.xml
@@ -15,10 +15,6 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="true"
- android:state_pressed="true"
- android:alpha="@dimen/hint_pressed_alpha_material_dark"
- android:color="@color/foreground_material_dark" />
- <item android:alpha="@dimen/hint_alpha_material_dark"
+ <item android:alpha="@dimen/secondary_content_alpha_material_dark"
android:color="@color/foreground_material_dark" />
</selector>
diff --git a/core/res/res/color/hint_foreground_material_light.xml b/core/res/res/color/hint_foreground_material_light.xml
index f7465e0e5139..63dd3b0131ca 100644
--- a/core/res/res/color/hint_foreground_material_light.xml
+++ b/core/res/res/color/hint_foreground_material_light.xml
@@ -15,10 +15,6 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="true"
- android:state_pressed="true"
- android:alpha="@dimen/hint_pressed_alpha_material_light"
- android:color="@color/foreground_material_light" />
- <item android:alpha="@dimen/hint_alpha_material_light"
+ <item android:alpha="@dimen/secondary_content_alpha_material_light"
android:color="@color/foreground_material_light" />
</selector>
diff --git a/core/res/res/layout/search_view.xml b/core/res/res/layout/search_view.xml
index 0c462fda9235..39034dc61620 100644
--- a/core/res/res/layout/search_view.xml
+++ b/core/res/res/layout/search_view.xml
@@ -96,8 +96,8 @@
android:id="@+id/search_close_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:paddingStart="8dip"
- android:paddingEnd="8dip"
+ android:paddingStart="12dip"
+ android:paddingEnd="12dip"
android:layout_gravity="center_vertical"
android:background="?attr/selectableItemBackgroundBorderless"
android:focusable="true"
diff --git a/core/res/res/values/colors_material.xml b/core/res/res/values/colors_material.xml
index d357f0102777..ea6e1f182fbf 100644
--- a/core/res/res/values/colors_material.xml
+++ b/core/res/res/values/colors_material.xml
@@ -65,18 +65,12 @@
<!-- 70% white -->
<color name="secondary_text_default_material_dark">#b3ffffff</color>
- <item name="hint_alpha_material_dark" format="float" type="dimen">0.50</item>
- <item name="hint_alpha_material_light" format="float" type="dimen">0.38</item>
-
- <item name="hint_pressed_alpha_material_dark" format="float" type="dimen">0.70</item>
- <item name="hint_pressed_alpha_material_light" format="float" type="dimen">0.54</item>
-
<item name="disabled_alpha_material_light" format="float" type="dimen">0.26</item>
<item name="disabled_alpha_material_dark" format="float" type="dimen">0.30</item>
<item name="primary_content_alpha_material_dark" format="float" type="dimen">1</item>
<item name="primary_content_alpha_material_light" format="float" type="dimen">0.87</item>
<item name="secondary_content_alpha_material_dark" format="float" type="dimen">.7</item>
- <item name="secondary_content_alpha_material_light" format="float" type="dimen">0.54</item>
+ <item name="secondary_content_alpha_material_light" format="float" type="dimen">0.60</item>
<item name="highlight_alpha_material_light" format="float" type="dimen">0.10</item>
<item name="highlight_alpha_material_dark" format="float" type="dimen">0.10</item>