开发者

how can i set the value checked in ListPreference

I have some problems with using ListPreference, when i set the value with useing开发者_开发百科 ListPreference.setEntries() and ListPreference.setEntryValues() , then the value was set ,but is was not checked , i tried the ListPreference.setEnabled(true) and ListPreference.setSelectable(true), but it was about the ListPreference , not the values in ListPreference, any method to make it checked with coding after i set the value?

thanks


To default the selected item in a listPreference, use setValueIndex

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜