问题描述
我想知道是什么的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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!