1

I would like to show the preference value in the summary field. This accepted answer shows how to do it for a ListPreference.

Is there a similar way to do it for an EditTextPrefernce in the layout instead of extending the class?

Community
  • 1
  • 1
Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263
  • I am assuming you have tried this and it doesn't work? The docs make it seem like it should work since this class inherits Preference functionality http://developer.android.com/reference/android/preference/Preference.html#setSummary(int) or http://developer.android.com/reference/android/preference/Preference.html#attr_android:summary – kandroidj Dec 14 '15 at 17:12

1 Answers1

1

I just have a little method that updates the preference summary every time a preference changes. I found this somewhere online back when I needed it but unfortunately I don't remember where to credit :(

Edit: Nevermind, I found the source. https://stackoverflow.com/a/4325239/3238938

Community
  • 1
  • 1
Damien Diehl
  • 383
  • 4
  • 13