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/layout | |
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/layout')
-rw-r--r-- | res/layout/dream_info_row.xml | 9 |
1 files changed, 6 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" /> |