标签: android android-adapter
我想知道何时更适合实现android.widget.Adapter或android.widget.ListAdapter,而不是扩展android.widget.BaseAdapter。为了给它添加一些上下文,我有一个由BaseMessage类的不同子类组成的列表,所以我想我需要覆盖getItemViewTypeCount(int position)和getItemViewType(int position)。
android.widget.Adapter
android.widget.ListAdapter
BaseMessage
getItemViewTypeCount(int position)
getItemViewType(int position)