ArrayAdapter,BaseAdapter和ListAdapter之间的区别是什么区别、ArrayAdapter、BaseAdapter、ListAdapter

由网友(踏雪寻梅)分享简介:能否请你告诉我的 ArrayAdapter , BaseAdapter 区别和 ListAdapter 。Could you please tell me difference between ArrayAdapter , BaseAdapter and 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.

阅读全文

相关推荐

最新文章