开发者

android preferences

i am using a listprefernce in my app and when a user makes a select开发者_运维知识库ion I would like to check it for errors, but when i set an onclicklistener it starts when i select the listpreference, not when i make my selection. is there a way to make it check the selection right after they make it?


found the answer. incase anyone else wants to know you need to use setOnPreferenceChangeListener and use the newValue object.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜