Browse Source

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.
master
Reece H. Dunn 12 years ago
parent
commit
3169ffbc04
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/res/layout/seekbar_preference.xml

+ 1
- 1
android/res/layout/seekbar_preference.xml View File

@@ -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" />

<SeekBar

Loading…
Cancel
Save