开发者

When would we want a non-persistent Preference?

开发者 https://www.devze.com 2023-03-24 03:15 出处:网络
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 comm

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

精彩评论

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

关注公众号