-
public abstract class BaseMessageViewHolder<T extends DyteChatMessage> extends RecyclerView.ViewHolder
Base class for Chat messages view holders. Different messages like text, image, file can extend this class and bind their specific message layout.
Note: Always use bindChatMessage in the RecyclerView.Adapter.onBindViewHolder
-
-
Field Summary
Fields Modifier and Type Field Description private final ViewitemViewprivate final WeakReference<RecyclerView>mNestedRecyclerViewprivate final IntegermPositionprivate final IntegermOldPositionprivate final LongmItemIdprivate final IntegermItemViewTypeprivate final IntegermPreLayoutPositionprivate final RecyclerView.ViewHoldermShadowedHolderprivate final RecyclerView.ViewHoldermShadowingHolderprivate final IntegermFlagsprivate final List<Object>mPayloadsprivate final List<Object>mUnmodifiedPayloadsprivate final RecyclerView.RecyclermScrapContainerprivate final BooleanmInChangeScrapprivate final IntegermPendingAccessibilityStateprivate final RecyclerViewmOwnerRecyclerView
-
Constructor Summary
Constructors Constructor Description BaseMessageViewHolder(View itemView)
-
Method Summary
-
Methods inherited from class dyte.io.uikit.screens.chat.BaseMessageViewHolder
addChangePayload, addFlags, clearOldPosition, clearPayload, clearReturnedFromScrapFlag, clearTmpDetachFlag, doesTransientStatePreventRecycling, flagRemovedAndOffsetPosition, getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, getUnmodifiedPayloads, hasAnyOfTheFlags, isAdapterPositionUnknown, isAttachedToTransitionOverlay, isBound, isInvalid, isRecyclable, isRemoved, isScrap, isTmpDetached, isUpdated, needsUpdate, offsetPosition, onEnteredHiddenState, onLeftHiddenState, resetInternal, saveOldPosition, setFlags, setIsRecyclable, setScrapContainer, shouldBeKeptAsChild, shouldIgnore, stopIgnoring, toString, unScrap, wasReturnedFromScrap -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-