From 646d42fe2de9a71afec559405b870943f57d6881 Mon Sep 17 00:00:00 2001 From: Charles He Date: Tue, 11 Apr 2017 19:37:05 +0100 Subject: [PATCH] VPN settings: better a11y voice for legacy dialog Previously, the user input fields in the legacy VPN config dialog would simply be read out as "edit box", "drop-down list", etc., without reference to their corresponding labels. This is not optimal for low-vision users. In this CL, we add a "labelFor" attribute to the prompt TextView of each field. The resulting input fields would instead be read out as "edit box for username", "drop-down list for type", etc., which are much less ambiguous than before. Bug: 37202471 Test: make SettingsGoogle and navigate the dialog with TalkBack on Change-Id: Id23d0563984e3de4a4a3d03a587ca130b50508fc --- res/layout/vpn_dialog.xml | 57 +++++++++++++++++++++++++++++---------- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/res/layout/vpn_dialog.xml b/res/layout/vpn_dialog.xml index 7731e6dce93..47be3689c60 100644 --- a/res/layout/vpn_dialog.xml +++ b/res/layout/vpn_dialog.xml @@ -28,16 +28,22 @@ android:orientation="vertical" android:visibility="gone"> - + - + - + - + @@ -61,11 +69,15 @@ android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone"> - + - + @@ -75,7 +87,9 @@ android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone"> - + @@ -85,10 +99,15 @@ android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone"> - + - + + @@ -103,15 +122,21 @@ android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone"> - + - + - + @@ -122,10 +147,14 @@ android:orientation="vertical" android:animateLayoutChanges="true"> - + - +