# ContactListAdapter

public class ContactListAdapter

联系人列表适配器

#### Author

rongcloud

#### Since

5.12.0

## Constructors

ContactListAdapter
Link copied to clipboard
public void ContactListAdapter(boolean showSelectButton, boolean showItemRightArrow, boolean showItemRightText, boolean showItemSelectAutoUpdate, boolean showItemRemoveButton)

## Functions

getItemCount
Link copied to clipboard
public int getItemCount()
getItemViewType
Link copied to clipboard
public int getItemViewType(int position)
getPositionForSection
Link copied to clipboard
public int getPositionForSection(char section)
onBindViewHolder
Link copied to clipboard
public void onBindViewHolder(ViewHolder holder, int position)
onCreateViewHolder
Link copied to clipboard
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
setData
Link copied to clipboard
public void setData(List<ContactModel> newData)
setOnItemClickListener
Link copied to clipboard
public void setOnItemClickListener(OnActionClickListener<ContactModel> onItemClickListener)
setOnItemRemoveClickListener
Link copied to clipboard
public void setOnItemRemoveClickListener(OnActionClickListener<ContactModel> listener)
setShowItemRemoveButton
Link copied to clipboard
public void setShowItemRemoveButton(boolean showItemRemoveButton)