From 8e779e627a2185320ab168fdce09477a73bf5f22 Mon Sep 17 00:00:00 2001 From: Jorge Lugo Date: Thu, 23 Jun 2011 14:51:19 -0700 Subject: [PATCH] Accessibility improvements TalkBack functions properly with MessageList items, as well as "reply," "reply-all," and "forward" buttons while viewing messages. It is now also possible to switch accounts using only a dpad or trackball. Finally, EditText fields in account setup also work with TalkBack now. Checkmarks don't work with Talkback, but this I have confirmed and reported it as frameworks bug. Change-Id: I7f72682a517eef4fa122241c675026fe7997ac64 --- .../account_setup_basics_common.xml | 2 + .../account_setup_names_common.xml | 5 ++- res/layout-sw600dp/message_view_fragment.xml | 3 ++ res/layout/account_setup_basics_common.xml | 2 + res/layout/account_setup_names.xml | 26 ++++++----- res/layout/action_bar_spinner.xml | 1 + res/layout/message_view_header_actions.xml | 1 + res/values/strings.xml | 5 +++ .../email/activity/MessageListItem.java | 45 ++++++++++++++++++- .../email/activity/MessagesAdapter.java | 2 +- 10 files changed, 76 insertions(+), 16 deletions(-) diff --git a/res/layout-sw600dp/account_setup_basics_common.xml b/res/layout-sw600dp/account_setup_basics_common.xml index 376a55783..aed76a6ec 100644 --- a/res/layout-sw600dp/account_setup_basics_common.xml +++ b/res/layout-sw600dp/account_setup_basics_common.xml @@ -50,6 +50,7 @@ android:id="@+id/account_email" android:layout_width="@dimen/setup_credentials_input_width" android:layout_height="wrap_content" + android:contentDescription="@string/account_setup_basics_email_label" android:inputType="textEmailAddress" android:imeOptions="actionNext" /> @@ -64,6 +65,7 @@ android:id="@+id/account_password" android:layout_height="wrap_content" android:layout_width="@dimen/setup_credentials_input_width" + android:contentDescription="@string/account_setup_basics_password_label" android:inputType="textPassword" android:imeOptions="actionDone" android:nextFocusDown="@+id/next" /> diff --git a/res/layout-sw600dp/account_setup_names_common.xml b/res/layout-sw600dp/account_setup_names_common.xml index c7667dd4b..4f4c7c9c7 100644 --- a/res/layout-sw600dp/account_setup_names_common.xml +++ b/res/layout-sw600dp/account_setup_names_common.xml @@ -21,8 +21,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="@dimen/setup_item_inset_left" - android:paddingRight="@dimen/setup_item_inset_right" - > + android:paddingRight="@dimen/setup_item_inset_right" > diff --git a/res/layout-sw600dp/message_view_fragment.xml b/res/layout-sw600dp/message_view_fragment.xml index 9162a9365..0af6f71ea 100644 --- a/res/layout-sw600dp/message_view_fragment.xml +++ b/res/layout-sw600dp/message_view_fragment.xml @@ -95,6 +95,7 @@ - + + android:layout_width="match_parent" + android:contentDescription="@string/account_setup_names_user_name_label" + android:inputType="textPersonName" + android:imeOptions="actionDone" />