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
This commit is contained in:
@@ -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">
|
||||
<path
|
||||
android:fillColor="#90ffffff"
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM12.5,7H11v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z"/>
|
||||
</vector>
|
||||
|
||||
@@ -19,10 +19,11 @@
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
|
||||
<path
|
||||
android:fillColor="#90ffffff"
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M20 5H4c-1.1 0-1.99 .9 -1.99 2L2 17c0 1.1 .9 2 2 2h16c1.1 0 2-.9
|
||||
2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0
|
||||
3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
android:layout_marginLeft="@dimen/timepicker_separator_padding"
|
||||
android:layout_marginRight="@dimen/timepicker_separator_padding"
|
||||
android:layout_centerInParent="true"
|
||||
android:paddingBottom="4dp"
|
||||
android:textAppearance="@style/TextAppearance.Material.TimePicker.TimeLabel"
|
||||
android:importantForAccessibility="no" />
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
<dimen name="timepicker_am_top_padding">4dp</dimen>
|
||||
<dimen name="timepicker_pm_top_padding">4dp</dimen>
|
||||
<dimen name="timepicker_separator_padding">2dp</dimen>
|
||||
<dimen name="timepicker_header_height">96dp</dimen>
|
||||
<dimen name="timepicker_header_height">100dp</dimen>
|
||||
<dimen name="timepicker_radial_picker_dimen">296dp</dimen>
|
||||
<dimen name="timepicker_radial_picker_top_margin">16dp</dimen>
|
||||
<dimen name="timepicker_radial_picker_horizontal_margin">16dp</dimen>
|
||||
|
||||
Reference in New Issue
Block a user