Class AttachmentPreviewViewHolder
-
- All Implemented Interfaces:
public abstract class AttachmentPreviewViewHolder extends RecyclerView.ViewHolder
A base RecyclerView.ViewHolder for attachment preview items in the message composer.
-
-
Constructor Summary
Constructors Constructor Description AttachmentPreviewViewHolder(View itemView)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final ViewgetItemView()abstract Unitbind(Attachment attachment)Binds the created View to the attachment data. Unitunbind()-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder
getAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AttachmentPreviewViewHolder
AttachmentPreviewViewHolder(View itemView)
- Parameters:
itemView- The view that this ViewHolder controls.
-
-
Method Detail
-
getContext
final Context getContext()
-
getItemView
final View getItemView()
-
bind
abstract Unit bind(Attachment attachment)
Binds the created View to the attachment data.
- Parameters:
attachment- The attachment that will be displayed.
-
-
-
-