Class GroupListAdapter
-
- All Implemented Interfaces:
public class GroupListAdapter extends RecyclerView.Adapter<VH>Adapter for the group list.
- Since:
5.12.2
-
-
Constructor Summary
Constructors Constructor Description GroupListAdapter()
-
Method Summary
Modifier and Type Method Description GroupListAdapter.GroupListViewHolderonCreateViewHolder(@NonNull() ViewGroup parent, int viewType)voidonBindViewHolder(@NonNull() GroupListAdapter.GroupListViewHolder holder, int position)intgetItemCount()voidsetData(List<GroupInfo> newData)voidsetOnItemClickListener(OnActionClickListener<GroupInfo> listener)voidsetOnItemLongClickListener(OnActionClickListener<GroupInfo> listener)voidsetHighlightedText(String text)Sets the text to be highlighted. -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateViewHolder
@NonNull() GroupListAdapter.GroupListViewHolder onCreateViewHolder(@NonNull() ViewGroup parent, int viewType)
-
onBindViewHolder
void onBindViewHolder(@NonNull() GroupListAdapter.GroupListViewHolder holder, int position)
-
getItemCount
int getItemCount()
-
setOnItemClickListener
void setOnItemClickListener(OnActionClickListener<GroupInfo> listener)
-
setOnItemLongClickListener
void setOnItemLongClickListener(OnActionClickListener<GroupInfo> listener)
-
setHighlightedText
void setHighlightedText(String text)
Sets the text to be highlighted.
- Parameters:
text- the text to highlight
-
-
-
-