CommentsViewHolder

class CommentsViewHolder(itemView: View) : RecyclerView.ViewHolder

View holder for the recycler view that handles the comments on the posts.

Parameters

itemView

Layout for a single item in the recycler view.

Constructors

CommentsViewHolder
Link copied to clipboard
fun CommentsViewHolder(itemView: View)
Creates a view holder for the recycler view that handles the comments on the posts.

Properties

btmItemCommentOptions
Link copied to clipboard
private val btmItemCommentOptions: BottomSheetDialog
Bottom sheet dialog for modifying a comment (that is, either editing or deleting it).
civItemCommentProfilePic
Link copied to clipboard
private val civItemCommentProfilePic: CircleImageView
Image view for the profile picture of the user who posted the comment.
ibItemCommentEdit
Link copied to clipboard
private val ibItemCommentEdit: ImageButton
Button for editing the comment.
storage
Link copied to clipboard
private var storage: FirebaseStorage
Service that supports uploading and downloading large objects to Google Cloud Storage.
storageRef
Link copied to clipboard
private var storageRef: StorageReference
Represents a reference to a Google Cloud Storage object.
tvItemCommentComment
Link copied to clipboard
private val tvItemCommentComment: TextView
Text view for the comment per se.
tvItemCommentDate
Link copied to clipboard
private val tvItemCommentDate: TextView
Text view for the date when the comment was posted.
tvItemCommentUsername
Link copied to clipboard
private val tvItemCommentUsername: TextView
Text view for the username of the user who posted the comment.

Inherited properties

itemView
Link copied to clipboard
val itemView: View
mBindingAdapter
Link copied to clipboard
val mBindingAdapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>
mFlags
Link copied to clipboard
val mFlags: Int
mInChangeScrap
Link copied to clipboard
val mInChangeScrap: Boolean
mIsRecyclableCount
Link copied to clipboard
private val mIsRecyclableCount: Int
mItemId
Link copied to clipboard
val mItemId: Long
mItemViewType
Link copied to clipboard
val mItemViewType: Int
mNestedRecyclerView
Link copied to clipboard
val mNestedRecyclerView: WeakReference<RecyclerView>
mOldPosition
Link copied to clipboard
val mOldPosition: Int
mOwnerRecyclerView
Link copied to clipboard
val mOwnerRecyclerView: RecyclerView
mPayloads
Link copied to clipboard
val mPayloads: MutableList<Any>
mPendingAccessibilityState
Link copied to clipboard
val mPendingAccessibilityState: Int
mPosition
Link copied to clipboard
val mPosition: Int
mPreLayoutPosition
Link copied to clipboard
val mPreLayoutPosition: Int
mScrapContainer
Link copied to clipboard
val mScrapContainer: RecyclerView.Recycler
mShadowedHolder
Link copied to clipboard
val mShadowedHolder: RecyclerView.ViewHolder
mShadowingHolder
Link copied to clipboard
val mShadowingHolder: RecyclerView.ViewHolder
mUnmodifiedPayloads
Link copied to clipboard
val mUnmodifiedPayloads: MutableList<Any>
private val mWasImportantForAccessibilityBeforeHidden: Int

Functions

getItemCommentOptions
Link copied to clipboard
fun getItemCommentOptions(): BottomSheetDialog
Returns the bottom sheet dialog for modifying a comment (that is, either editing or deleting it).
getItemCommentProfilePic
Link copied to clipboard
fun getItemCommentProfilePic(): CircleImageView
Returns the image view for the profile picture of the user who posted the comment.
setItemCommentComment
Link copied to clipboard
fun setItemCommentComment(comment: String?)
Sets the comment to the specified string.
setItemCommentDate
Link copied to clipboard
fun setItemCommentDate(date: String?)
Sets the date when the comment was posted to the specified string.
setItemCommentEdit
Link copied to clipboard
fun setItemCommentEdit(editable: Boolean)
Allows the user to edit a comment posted by them but disallows them to edit a comment created by another user.
setItemCommentOptionsOnClickListener
Link copied to clipboard
fun setItemCommentOptionsOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener of the options icon displayed alongside a comment.
setItemCommentProfileOnClickListener
Link copied to clipboard
fun setItemCommentProfileOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener of the profile picture of the user who posted the comment.
setItemCommentProfilePic
Link copied to clipboard
fun setItemCommentProfilePic(picture: String)
Sets the profile picture of the user who posted the comment to the photo specified by the given URI.
setItemCommentUsername
Link copied to clipboard
fun setItemCommentUsername(name: String?)
Sets the username of the user who posted the comment to the specified string.

Inherited functions

addChangePayload
Link copied to clipboard
open fun addChangePayload(p0: Any)
addFlags
Link copied to clipboard
open fun addFlags(p0: Int)
clearOldPosition
Link copied to clipboard
open fun clearOldPosition()
clearPayload
Link copied to clipboard
open fun clearPayload()
clearReturnedFromScrapFlag
Link copied to clipboard
open fun clearReturnedFromScrapFlag()
clearTmpDetachFlag
Link copied to clipboard
open fun clearTmpDetachFlag()
createPayloadsIfNeeded
Link copied to clipboard
private open fun createPayloadsIfNeeded()
doesTransientStatePreventRecycling
Link copied to clipboard
open fun doesTransientStatePreventRecycling(): Boolean
flagRemovedAndOffsetPosition
Link copied to clipboard
open fun flagRemovedAndOffsetPosition(p0: Int, p1: Int, p2: Boolean)
getAbsoluteAdapterPosition
Link copied to clipboard
fun getAbsoluteAdapterPosition(): Int
getAdapterPosition
Link copied to clipboard
fun getAdapterPosition(): Int
getBindingAdapter
Link copied to clipboard
getBindingAdapterPosition
Link copied to clipboard
fun getBindingAdapterPosition(): Int
getItemId
Link copied to clipboard
fun getItemId(): Long
getItemViewType
Link copied to clipboard
fun getItemViewType(): Int
getLayoutPosition
Link copied to clipboard
fun getLayoutPosition(): Int
getOldPosition
Link copied to clipboard
fun getOldPosition(): Int
getPosition
Link copied to clipboard
fun getPosition(): Int
getUnmodifiedPayloads
Link copied to clipboard
open fun getUnmodifiedPayloads(): MutableList<Any>
hasAnyOfTheFlags
Link copied to clipboard
open fun hasAnyOfTheFlags(p0: Int): Boolean
isAdapterPositionUnknown
Link copied to clipboard
open fun isAdapterPositionUnknown(): Boolean
isAttachedToTransitionOverlay
Link copied to clipboard
open fun isAttachedToTransitionOverlay(): Boolean
isBound
Link copied to clipboard
open fun isBound(): Boolean
isInvalid
Link copied to clipboard
open fun isInvalid(): Boolean
isRecyclable
Link copied to clipboard
fun isRecyclable(): Boolean
isRemoved
Link copied to clipboard
open fun isRemoved(): Boolean
isScrap
Link copied to clipboard
open fun isScrap(): Boolean
isTmpDetached
Link copied to clipboard
open fun isTmpDetached(): Boolean
isUpdated
Link copied to clipboard
open fun isUpdated(): Boolean
needsUpdate
Link copied to clipboard
open fun needsUpdate(): Boolean
offsetPosition
Link copied to clipboard
open fun offsetPosition(p0: Int, p1: Boolean)
onEnteredHiddenState
Link copied to clipboard
open fun onEnteredHiddenState(p0: RecyclerView)
onLeftHiddenState
Link copied to clipboard
open fun onLeftHiddenState(p0: RecyclerView)
resetInternal
Link copied to clipboard
open fun resetInternal()
saveOldPosition
Link copied to clipboard
open fun saveOldPosition()
setFlags
Link copied to clipboard
open fun setFlags(p0: Int, p1: Int)
setIsRecyclable
Link copied to clipboard
fun setIsRecyclable(p0: Boolean)
setScrapContainer
Link copied to clipboard
open fun setScrapContainer(p0: RecyclerView.Recycler, p1: Boolean)
shouldBeKeptAsChild
Link copied to clipboard
open fun shouldBeKeptAsChild(): Boolean
shouldIgnore
Link copied to clipboard
open fun shouldIgnore(): Boolean
stopIgnoring
Link copied to clipboard
open fun stopIgnoring()
toString
Link copied to clipboard
open override fun toString(): String
unScrap
Link copied to clipboard
open fun unScrap()
wasReturnedFromScrap
Link copied to clipboard
open fun wasReturnedFromScrap(): Boolean