Ivan-Mark Debono
Ivan-Mark Debono

Reputation: 16290

Android EditTextPreference show value in summary

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?

Upvotes: 1

Views: 1901

Answers (1)

Damien Diehl
Damien Diehl

Reputation: 382

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

Upvotes: 1

Related Questions