开发者

Store Changes Of Layout Permanently After Closing The Application

I have a preference layout file, and i want to store all the changes in my layout

so the next time I open application it has new changes

Example---> Two Radio Buttons in an XML file 1) Blue (Checked) 2) Red (Unchecked)

Now when I Checked it to Red and close The Application then at next time when i run again

then it should has thi开发者_StackOverflow中文版s manner in same XML file 1)Blue (Unchecked) 2)Red (Checked)

so please tell me how I do this.

waiting for your reply, thanks


Devang,

You need a ChecKBoxPreference to store the value in SharedPreferences

This website provides a pretty good tutorial of all of the Preferences types that Android provides and how to save/restore them: http://www.kaloer.com/android-preferences

Good luck!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜