OwnPostsViewHolder

class OwnPostsViewHolder(itemView: View) : RecyclerView.ViewHolder

View holder for the recycler view that handles the user's own posts.

Parameters

itemView

Layout for a single item in the recycler view.

Constructors

OwnPostsViewHolder
Link copied to clipboard
fun OwnPostsViewHolder(itemView: View)
Creates a view holder for the recycler view that handles the user's own posts.

Properties

btmItemOwnPostOptions
Link copied to clipboard
private val btmItemOwnPostOptions: BottomSheetDialog
Bottom sheet dialog showing the actions that the user can perform on their own post: editing its details and deleting it.
civOwnPostProfilePic
Link copied to clipboard
private val civOwnPostProfilePic: CircleImageView
Image view for the user's profile picture.
clOwnPostComment
Link copied to clipboard
private val clOwnPostComment: ConstraintLayout
Clickable layout for commenting on the post.
clOwnPostHighlight
Link copied to clipboard
private val clOwnPostHighlight: ConstraintLayout
Clickable layout for highlighting the posted artwork.
clOwnPostShare
Link copied to clipboard
private val clOwnPostShare: ConstraintLayout
Clickable layout for sharing the post on the user's Facebook account.
ibItemOwnPostOptions
Link copied to clipboard
private val ibItemOwnPostOptions: ImageButton
Image button for displaying the bottom sheet dialog related to the actions that the user can perform on their own post.
ivOwnPostHighlight
Link copied to clipboard
private val ivOwnPostHighlight: ImageView
Image view for highlighting the posted artwork.
ivOwnPostPost
Link copied to clipboard
private val ivOwnPostPost: ImageView
Image view for the artwork posted.
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.
tvOwnPostComments
Link copied to clipboard
private val tvOwnPostComments: TextView
Text view for the comments.
tvOwnPostHighlight
Link copied to clipboard
private val tvOwnPostHighlight: TextView
Text view for highlighting the posted artwork.
tvOwnPostTitle
Link copied to clipboard
private val tvOwnPostTitle: TextView
Text view for the title of the artwork posted.
tvOwnPostUpvoteCounter
Link copied to clipboard
private val tvOwnPostUpvoteCounter: TextView
Text view for the number of upvotes.
tvOwnPostUsername
Link copied to clipboard
private val tvOwnPostUsername: TextView
Text view for the user's username.

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

getOwnPostOptions
Link copied to clipboard
fun getOwnPostOptions(): BottomSheetDialog
Returns the bottom sheet dialog showing the actions that the user can perform on their own post: editing its details and deleting it.
getOwnPostPost
Link copied to clipboard
fun getOwnPostPost(): ImageView
Returns the image view for the artwork posted.
getOwnPostProfilePic
Link copied to clipboard
fun getOwnPostProfilePic(): CircleImageView
Returns the image view for the user's profile picture.
getOwnPostUsername
Link copied to clipboard
fun getOwnPostUsername(): TextView
Returns the text view for the user's username.
setOwnPostCommentOnClickListener
Link copied to clipboard
fun setOwnPostCommentOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for commenting on the posted artwork.
setOwnPostComments
Link copied to clipboard
fun setOwnPostComments(comments: String?)
Sets the text inside the text view related to the comments on the posted artwork to the given string.
setOwnPostHighlight
Link copied to clipboard
fun setOwnPostHighlight(highlight: Boolean)
Updates the view depending on whether the posted artwork is highlighted
setOwnPostHighlightOnClickListener
Link copied to clipboard
fun setOwnPostHighlightOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for highlighting the posted artwork.
setOwnPostOptionsOnClickListener
Link copied to clipboard
fun setOwnPostOptionsOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for the button used to display the actions that the user can perform on their own posted artwork.
setOwnPostPost
Link copied to clipboard
fun setOwnPostPost(post: String)
Sets the posted artwork to photo specified by the given URI.
setOwnPostProfileOnClickListener
Link copied to clipboard
fun setOwnPostProfileOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for the profile picture and username of the user who posted the artwork.
setOwnPostProfilePic
Link copied to clipboard
fun setOwnPostProfilePic(picture: String)
Sets the profile picture to the photo specified by the given URI.
setOwnPostShareOnClickListener
Link copied to clipboard
fun setOwnPostShareOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for sharing the posted artwork on Facebook.
setOwnPostTitle
Link copied to clipboard
fun setOwnPostTitle(title: String?)
Sets the title of the posted artwork to the given string.
setOwnPostUpvoteCounter
Link copied to clipboard
fun setOwnPostUpvoteCounter(upvotes: String?)
Sets the number of upvotes of the posted artwork to the given string.
setOwnPostUsername
Link copied to clipboard
fun setOwnPostUsername(name: String?)
Sets the username 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