diff options
author | alanv <alanv@google.com> | 2012-10-02 17:16:18 -0700 |
---|---|---|
committer | alanv <alanv@google.com> | 2012-10-02 17:16:18 -0700 |
commit | 364082e355e0ea4f39e48d8ef11b18350f4b077e (patch) | |
tree | f105e362cf946eb9dbe88a40492332d3bc1fbb19 /res | |
parent | 6258a0e22ed82f8fcc80e50ffda058ebcaf177e1 (diff) | |
download | packages_apps_settings-364082e355e0ea4f39e48d8ef11b18350f4b077e.zip packages_apps_settings-364082e355e0ea4f39e48d8ef11b18350f4b077e.tar.gz packages_apps_settings-364082e355e0ea4f39e48d8ef11b18350f4b077e.tar.bz2 |
Add a11y content descriptions and label mapping to Dreams.
Also makes the radio button non-focusable and non-clickable, since
focus and click are handled by its list item container. Clicking on
top of the radio button still works as intended.
Bug: 7230372
Change-Id: I0f311160b09402d882c9d35fdb51e8f19c60f522
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/dream_info_row.xml | 9 | ||||
-rw-r--r-- | res/values/strings.xml | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/res/layout/dream_info_row.xml b/res/layout/dream_info_row.xml index c2d90fb..a2f81c6 100644 --- a/res/layout/dream_info_row.xml +++ b/res/layout/dream_info_row.xml @@ -54,7 +54,8 @@ android:ellipsize="end" android:singleLine="true" android:textAppearance="?android:attr/textAppearanceMedium" - android:textDirection="locale" /> + android:textDirection="locale" + android:labelFor="@android:id/button2" /> <!-- Dream radio button --> @@ -64,7 +65,9 @@ android:layout_height="match_parent" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:duplicateParentState="true" /> + android:duplicateParentState="true" + android:clickable="false" + android:focusable="false" /> </RelativeLayout> <!-- Divider --> @@ -90,7 +93,7 @@ android:layout_centerVertical="true" android:layout_margin="0dip" android:background="?android:attr/selectableItemBackground" - android:contentDescription="@null" + android:contentDescription="@string/screensaver_settings_button" android:padding="8dip" android:src="@drawable/ic_bt_config" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 0d2a983..1f94287 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1793,6 +1793,8 @@ <string name="screensaver_settings_when_to_dream">When to sleep</string> <!-- Dream settings screen, button label to start dreaming --> <string name="screensaver_settings_dream_start">Sleep now</string> + <!-- Dream settings screen, button label for settings for a specific screensaver --> + <string name="screensaver_settings_button">Settings</string> <!-- Sound & display settings screen, setting option name to change whether the screen adjusts automatically based on lighting conditions --> <string name="automatic_brightness">Automatic brightness</string> <!-- [CHAR LIMIT=30] Sound & display settings screen, setting option name to change font size --> |