ListActivity 可以插入到首选项屏幕中吗?
我想使用“首选项”屏幕,但在其中插入一个 ListActivity 以显示联系人,并带有复选框、姓名和电话号码,以便用户可以将 1..N 个联系人设置为已批准特定的联系人手术。
这是可能的,还是我需要创建自己的“本土”或“自己制作”伪首选项屏幕来实现此目的?
我希望最终能够循环遍历 ListView,将选定的每个联系人(通过其行上的关联复选框)保存到首选项存储或 SQLite 数据库。
I want to use a Preferences screen, but insert into it a ListActivity in order to display Contacts, with a checkbox, a name, and a phone number, so that users can set 1..N of their contacts as being approved for a particular operation.
Is this possible, or will I need to create my own "home-grown" or "roll-your-own" pseudo Preference screen to accomplish this?
I want to ultimately be able to loop through the ListView, saving each Contact selected (via the associated check box on its row) to either the Preferences storage or to a SQLite database.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个:
Take a look at this: