Package io.rong.imkit.conversationlist
Class ConversationListAdapterSupportStrongerTouchEvent
-
- All Implemented Interfaces:
public class ConversationListAdapterSupportStrongerTouchEvent extends ConversationListAdapter
会话列表增强Adapter,能够解决会话列表频繁刷新时不能响应点击和长按事件的问题
chenjialong
-
-
Field Summary
Fields Modifier and Type Field Description protected HandlermainHandlerprotected booleanisItemClickEventScheduledprotected IViewProviderListener<T>mListenerprotected List<T>mDataListprotected BaseAdapter.OnItemClickListenermOnItemClickListenerprotected ProviderManager<T>mProviderManager
-
Constructor Summary
Constructors Constructor Description ConversationListAdapterSupportStrongerTouchEvent()
-
Method Summary
Modifier and Type Method Description voidonBindViewHolder(@NonNull() ViewHolder holder, int position)booleanisStrongerSupportConversationListItemClick()longnotifyDataSetChangedDelayMillis()voidsetDataCollection(List<BaseUiConversation> data)-
Methods inherited from class io.rong.imkit.conversationlist.ConversationListAdapter
getItemViewType, onCreateViewHolder -
Methods inherited from class io.rong.imkit.widget.adapter.BaseAdapter
add, addFootView, addHeaderView, getData, getFootersCount, getHeadersCount, getItem, getItemCount, isEmpty, onAttachedToRecyclerView, onViewAttachedToWindow, remove, setDataCollection, setEmptyView, setEmptyView, setItemClickListener -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemCount, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onCreateViewHolder, 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
-
onBindViewHolder
void onBindViewHolder(@NonNull() ViewHolder holder, int position)
-
isStrongerSupportConversationListItemClick
boolean isStrongerSupportConversationListItemClick()
-
notifyDataSetChangedDelayMillis
long notifyDataSetChangedDelayMillis()
-
setDataCollection
void setDataCollection(List<BaseUiConversation> data)
-
-
-
-