From 3169ffbc041e52594040ff7b4806f21eeed827c7 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sat, 4 May 2013 12:38:04 +0100 Subject: [PATCH] SeekBarPreference: don't make the value text selectable The ADT lint warnings flagged the value text as "consider making the text selectable", however if you do TalkBack will cause the first character to be read every time the seekbar changes poisiton (due to the text being updated via the setText method). This is annoying and confusing, so textIsSelectable is set to false to supress the lint warning. --- android/res/layout/seekbar_preference.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/res/layout/seekbar_preference.xml b/android/res/layout/seekbar_preference.xml index f4c1416c..d8334daa 100644 --- a/android/res/layout/seekbar_preference.xml +++ b/android/res/layout/seekbar_preference.xml @@ -12,7 +12,7 @@ android:layout_marginTop="8dp" android:layout_marginBottom="8dp" android:gravity="center_horizontal" - android:textIsSelectable="true" + android:textIsSelectable="false" android:textAppearance="?android:attr/textAppearanceMedium" />