Skip to content

Commit

Permalink
[MaterialDatePicker][a11y] Make picker header focusable to improve Ta…
Browse files Browse the repository at this point in the history
…lkBack response

PiperOrigin-RevId: 440375456
(cherry picked from commit c23daec)
  • Loading branch information
paulfthomas authored and dsn5ft committed Apr 19, 2022
1 parent e1ee959 commit 9dd0952
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Expand Up @@ -37,7 +37,9 @@
android:layout_height="0dp"
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding">
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">

<include layout="@layout/mtrl_picker_header_title_text"/>
<include layout="@layout/mtrl_picker_header_selection_text"/>
Expand Down
Expand Up @@ -38,7 +38,9 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding">
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">

<include layout="@layout/mtrl_picker_header_title_text"/>
<include layout="@layout/mtrl_picker_header_selection_text"/>
Expand Down
Expand Up @@ -53,7 +53,9 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding">
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">

<TextView
android:id="@+id/mtrl_picker_title_text"
Expand Down

0 comments on commit 9dd0952

Please sign in to comment.