You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public final void onBindViewHolder(@NonNull ViewHolder holder, int position) {
onBindViewHolder(holder, position, Collections.emptyList());
}
@Override
public final void onBindViewHolder(@NonNull ViewHolder holder, int position, @NonNull List<Object> payloads) {
viewBinder.onBindViewHolder(holder, items.get(position), payloads);
if (onItemClickListener != null) {
holder.itemView.setOnClickListener(v -> {
if (onItemClickListener != null) {
onItemClickListener.onItemClick(items.get(position));
}
});
}
if (onItemLongClickListener != null) {
holder.itemView.setOnLongClickListener(v -> {
if (onItemLongClickListener != null) {
return onItemLongClickListener.onItemLongClick(items.get(position));
}
return false;
});
}
}
onBindViewHolder(@nonnull ViewHolder holder, int position, @nonnull List payloads)内才会调用 onBindViewHolder(@nonnull ViewHolder holder, int position)。现在重写onBindViewHolder(@nonnull ViewHolder holder, int position, @nonnull List payloads),那么MultiTypeAdapter onBindViewHolder(@nonnull ViewHolder holder, int position)的意思是?
The text was updated successfully, but these errors were encountered:
onBindViewHolder(@nonnull ViewHolder holder, int position, @nonnull List payloads)内才会调用 onBindViewHolder(@nonnull ViewHolder holder, int position)。现在重写onBindViewHolder(@nonnull ViewHolder holder, int position, @nonnull List payloads),那么MultiTypeAdapter onBindViewHolder(@nonnull ViewHolder holder, int position)的意思是?
The text was updated successfully, but these errors were encountered: