public abstract class SectionAdapter<T> extends MultiItemCommonAdapter<T>
mMultiItemTypeSupportmContext, mDatas, mInflater, mLayoutId| 构造器和说明 |
|---|
SectionAdapter(android.content.Context context,
int layoutId,
java.util.List<T> datas,
SectionSupport sectionSupport) |
SectionAdapter(android.content.Context context,
int layoutId,
MultiItemTypeSupport multiItemTypeSupport,
java.util.List<T> datas,
SectionSupport sectionSupport) |
SectionAdapter(android.content.Context context,
MultiItemTypeSupport multiItemTypeSupport,
java.util.List<T> datas,
SectionSupport sectionSupport) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
findSections() |
int |
getIndexForPosition(int position) |
int |
getItemCount() |
int |
getItemViewType(int position) |
protected int |
getPosition(RecyclerView.ViewHolder viewHolder) |
protected boolean |
isEnabled(int viewType) |
void |
onBindViewHolder(ViewHolder holder,
int position) |
void |
onDetachedFromRecyclerView(RecyclerView recyclerView) |
onCreateViewHolderconvert, getDatas, getItem, notifyDataSetChanged, setListener, setOnItemClickListener, setOnItemLongClickClickListenerpublic SectionAdapter(android.content.Context context,
int layoutId,
java.util.List<T> datas,
SectionSupport sectionSupport)
public SectionAdapter(android.content.Context context,
MultiItemTypeSupport multiItemTypeSupport,
java.util.List<T> datas,
SectionSupport sectionSupport)
public SectionAdapter(android.content.Context context,
int layoutId,
MultiItemTypeSupport multiItemTypeSupport,
java.util.List<T> datas,
SectionSupport sectionSupport)
public int getItemViewType(int position)
getItemViewType 在类中 MultiItemCommonAdapter<T>protected boolean isEnabled(int viewType)
isEnabled 在类中 CommonAdapter<T>public void onDetachedFromRecyclerView(RecyclerView recyclerView)
public void findSections()
public int getItemCount()
getItemCount 在类中 CommonAdapter<T>public int getIndexForPosition(int position)
protected int getPosition(RecyclerView.ViewHolder viewHolder)
getPosition 在类中 CommonAdapter<T>public void onBindViewHolder(ViewHolder holder, int position)
onBindViewHolder 在类中 CommonAdapter<T>