ArrayAdapter,BaseAdapter和ListAdapter之间的区别是什么 [英] What is the difference between ArrayAdapter , BaseAdapter and ListAdapter

查看:720
本文介绍了ArrayAdapter,BaseAdapter和ListAdapter之间的区别是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否请你告诉我的 ArrayAdapter BaseAdapter 区别和 ListAdapter

Could you please tell me difference between ArrayAdapter , BaseAdapter and ListAdapter.

推荐答案

底座适配器顾名思义,是所有适配器的基类。

Base Adapter as the name suggests, is a base class for all the adapters.

当您扩展基本适配器类需要实现所有喜欢getCount将的方法的getId等。

When you are extending the Base adapter class you need to implement all the methods like getcount,getid etc.

ArrayAdapter是可与数据的数组工作的一类。您仅需覆盖getview方法

ArrayAdapter is a class which can work with array of data. you need to override only getview method

Listadapter是一个接口用具体的适配器类实现的。

Listadapter is a an interface implemented by concrete adapter classes.

相应的适配器是抽象类,其中为阵列适配器和表适配器是具体的类。

Base adapter is abstract class where as array adapter and the list adapter are the concrete classes.

数组适配器和listadapter类的开发,因为一般我们处理数组数据集和列表的数据集。

Array adapter and listadapter classes are developed since in general we deal with the array data sets and list data sets.

这篇关于ArrayAdapter,BaseAdapter和ListAdapter之间的区别是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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