本文介绍了SimpleCursorAdapter和的CursorAdapter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是什么的CursorAdapter和SimpleCursorAdapter之间的差异。基于什么标准的人会选择一个或另一个。您的经验与他们合作?
谢谢

I want to know what are the differences between CursorAdapter and SimpleCursorAdapter. Based on what criteria someone would choose the one or the other. Your experiences working with them?Thank you

推荐答案

CursorAdapter的是抽象的,是要延长。另一方面,SimpleCursorAdapter不是抽象

CursorAdapter is abstract and is to be extended. On the other hand, SimpleCursorAdapter is not abstract.

注意NewView的(上下文的背景下,光标光标,父母的ViewGroup)是CursorAdapter的抽象,但SimpleCursorAdapter实施。这是因为SimpleCursorAdapter有特定的机制来启动的景色,而CursorAdapter的留给了开发商。

Notice that newView(Context context, Cursor cursor, ViewGroup parent) is abstract in CursorAdapter but implemented in SimpleCursorAdapter. This is because SimpleCursorAdapter has a specific mechanism to initiate views while CursorAdapter leaves it up to the developer.

这篇关于SimpleCursorAdapter和的CursorAdapter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 11:50