【问题标题】:put item of listView in preference activity将 listView 的项目放入偏好活动中
【发布时间】:2016-02-16 19:59:47
【问题描述】:

我有一个列表视图,我想为每个项目实现一个按钮,如果被压碎,则该项目在另一个活动 (preferenceActivity) 中可见。我应该去看什么才能实现这一目标?有导游吗?感谢您的回答!

【问题讨论】:

    标签: android listview preference


    【解决方案1】:

    您可以使用 SharedPrefrences 更改 PreferenceActivity 之外的设置:How to change state of a preference item from outside the PreferenceActivity? 我建议阅读有关 Android 设置的指南:http://developer.android.com/guide/topics/ui/settings.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-22
      • 1970-01-01
      • 1970-01-01
      • 2013-03-10
      • 1970-01-01
      相关资源
      最近更新 更多