public class DataProcessor<D>
DataProcessor,corresponding to GenericAdapter,to process GenericAdapter data and return the needs result
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DataProcessor.ViewHolder
use in
and ,to cache view for quick access |
| 构造器和说明 |
|---|
DataProcessor() |
DataProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getItemStableId()
corresponding to
|
int |
getItemViewType()
corresponding to
,if mViewTypeCount > 1,should override this method to implement multiple type |
int |
getViewTypeCount() |
void |
onBindView()
corresponding to
,call this method when view should be updated |
android.view.View |
onCreateView()
corresponding to
,call this method when view should be created |
public long getItemStableId()
corresponding to GenericAdapter.getItemId
GenericAdapter.getItemIdpublic android.view.View onCreateView()
corresponding to ,call this method when view should be createdGenericAdapter.getView
GenericAdapter.getViewpublic void onBindView()
corresponding to ,call this method when view should be updatedGenericAdapter.getView
GenericAdapter.getViewpublic int getItemViewType()
corresponding to ,if mViewTypeCount > 1,should override this method to implement multiple typeGenericAdapter.getItemViewType
GenericAdapter.getItemViewTypepublic int getViewTypeCount()