阵列适配器,适配器光标在Android中的区别 [英] Difference between Array adapter and Cursor Adapter in Android

查看:175
本文介绍了阵列适配器,适配器光标在Android中的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阵列适配器和光标适配器的Andr​​oid?之间的区别是什么

What is the difference between Array adapter and Cursor Adapter in Android?

推荐答案

数组适配器:这需要项目的数组,并使用该数组来建立你的列表中的适配器

Array Adapter : An adapter that takes an array of items and uses this array to build your list.

的CursorAdapter:这需要一个游标其中U接收作为查询到SQLite数据库或内容解析的结果。你通过这个光标适配器,并根据该列表创建于数据present光标。

CursorAdapter : It takes a cursor which u receive as a result of a query to a sqlite database or a content resolver. You pass this cursor to the adapter and the list is created based upon the data present in the cursor.

这篇关于阵列适配器,适配器光标在Android中的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆