From e62a904ce23e44a5d2a3e07e7e5167a95e3f4f28 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Wed, 17 Apr 2019 10:26:55 -0700 Subject: [PATCH] Fix up accessibility issues in Time picker. - btn_keyboard_key_material and btn_clock_material to have white background without any alpha so that tinting works propertly. - Add 4dp more space in the time picker header so that PM button has 48dp touch area. Bug: 128664779 Test: visual inspection Change-Id: Id7d8f51f37e95df1b63f1d8420b00ab724cf1a59 Merged-In: Id7d8f51f37e95df1b63f1d8420b00ab724cf1a59 --- core/res/res/drawable/btn_clock_material.xml | 5 +++-- core/res/res/drawable/btn_keyboard_key_material.xml | 5 +++-- core/res/res/layout/time_picker_header_material.xml | 1 + core/res/res/values/dimens_material.xml | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/res/res/drawable/btn_clock_material.xml b/core/res/res/drawable/btn_clock_material.xml index f785ebf7a8817..ec3171857a69c 100644 --- a/core/res/res/drawable/btn_clock_material.xml +++ b/core/res/res/drawable/btn_clock_material.xml @@ -19,8 +19,9 @@ android:width="24dp" android:height="24dp" android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:viewportHeight="24.0" + android:tint="?attr/colorControlNormal"> diff --git a/core/res/res/drawable/btn_keyboard_key_material.xml b/core/res/res/drawable/btn_keyboard_key_material.xml index 14a9492f00239..c47d034d998e3 100644 --- a/core/res/res/drawable/btn_keyboard_key_material.xml +++ b/core/res/res/drawable/btn_keyboard_key_material.xml @@ -19,10 +19,11 @@ android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24"> + android:viewportHeight="24" + android:tint="?attr/colorControlNormal"> diff --git a/core/res/res/values/dimens_material.xml b/core/res/res/values/dimens_material.xml index a0b40edd68a1f..972fe7ed91de4 100644 --- a/core/res/res/values/dimens_material.xml +++ b/core/res/res/values/dimens_material.xml @@ -149,7 +149,7 @@ 4dp 4dp 2dp - 96dp + 100dp 296dp 16dp 16dp