ListPreference's summary text is not updated automatically whenever there is change in selection

前端 未结 3 1915
盖世英雄少女心
盖世英雄少女心 2021-02-05 12:33

Although it is being documented, by using \"%s\", I can display selected value as summary, it doesn\'t work as expected.

http://developer.android.com/refere

3条回答
  •  一个人的身影
    2021-02-05 13:13

    I guess its some kind of a weird bug, because I've tested it on emulator running Android 2.3.3 and it didn't work, but when i tested it on 4.0.3 it worked. What i did was android:summary="%s" in xml for ListPreference and that's all.

提交回复
热议问题