From 9092edaa3e0686cfa4ec4ab9db3890a8e95f1ebe Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Tue, 2 Apr 2019 14:00:10 -0700 Subject: [PATCH] Closes #1172: Make RadioButton in RadioButtonPreference non focusable. This tells TalkBack not to land on the button individually, but instead to land on the parent View. TalkBack users will get both the button state and the textual description. Double tapping should work too. --- app/src/main/res/layout/preference_widget_radiobutton.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/res/layout/preference_widget_radiobutton.xml b/app/src/main/res/layout/preference_widget_radiobutton.xml index 5ca88a7d3..517f7c702 100644 --- a/app/src/main/res/layout/preference_widget_radiobutton.xml +++ b/app/src/main/res/layout/preference_widget_radiobutton.xml @@ -28,6 +28,7 @@ android:layout_gravity="start" android:button="@null" android:clickable="false" + android:focusable="false" android:drawableStart="?android:attr/listChoiceIndicatorSingle" android:drawablePadding="@dimen/radio_button_preference_drawable_padding"/>