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(android.support.v7.widget.RecyclerView.ViewHolder viewHolder) |
protected boolean |
isEnabled(int viewType) |
void |
onBindViewHolder(ViewHolder holder,
int position) |
void |
onDetachedFromRecyclerView(android.support.v7.widget.RecyclerView recyclerView) |
onCreateViewHolderconvert, setListener, setOnItemClickListenerbindViewHolder, createViewHolder, getItemId, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserverpublic 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(android.support.v7.widget.RecyclerView recyclerView)
onDetachedFromRecyclerView 在类中 android.support.v7.widget.RecyclerView.Adapter<ViewHolder>public void findSections()
public int getItemCount()
getItemCount 在类中 CommonAdapter<T>public int getIndexForPosition(int position)
protected int getPosition(android.support.v7.widget.RecyclerView.ViewHolder viewHolder)
getPosition 在类中 CommonAdapter<T>public void onBindViewHolder(ViewHolder holder, int position)
onBindViewHolder 在类中 CommonAdapter<T>