开发者

When would we want a non-persistent Preference?

I'm trying to wrap my head around persistency when it comes to Android preferences. There's an at开发者_如何学Gotribute persistent, which can be either true or false. If true, the preference is committed to shared preferences. How can a preference be used if it's not persistent?


You could (ab-)use Preferences as menu items (make them clickable to launch some other action) or to display some info, e.g. application version etc.

In this case, you don't want them to be stored in the xml file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜