FeedViewHolder

class FeedViewHolder(itemView: View) : RecyclerView.ViewHolder

View holder for the recycler view that handles the posts displayed on the feed.

Parameters

itemView

Layout for a single item in the recycler view.

Constructors

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

Properties

civItemFeedProfilePic
Link copied to clipboard
private val civItemFeedProfilePic: CircleImageView
Image view for the profile picture of the user who posted.
clItemFeedComment
Link copied to clipboard
private val clItemFeedComment: ConstraintLayout
Clickable layout for commenting on the post.
clItemFeedShare
Link copied to clipboard
private val clItemFeedShare: ConstraintLayout
Clickable layout for sharing the post on the user's Facebook account.
clItemFeedUpvote
Link copied to clipboard
private val clItemFeedUpvote: ConstraintLayout
Clickable layout for upvoting the post.
ibItemFeedBookmark
Link copied to clipboard
private val ibItemFeedBookmark: ImageButton
Button for bookmarking the post.
ivItemFeedPost
Link copied to clipboard
private val ivItemFeedPost: ImageView
Image view for the artwork posted.
ivItemFeedUpvote
Link copied to clipboard
private val ivItemFeedUpvote: ImageView
Button for upvoting the post.
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.
tvItemFeedComments
Link copied to clipboard
private val tvItemFeedComments: TextView
Text view for the comments.
tvItemFeedCommentsCounter
Link copied to clipboard
private val tvItemFeedCommentsCounter: TextView
Text view for the number of comments.
tvItemFeedTitle
Link copied to clipboard
private val tvItemFeedTitle: TextView
Text view for the title of the artwork posted.
tvItemFeedUpvote
Link copied to clipboard
private val tvItemFeedUpvote: TextView
Text view for upvotes.
tvItemFeedUpvoteCounter
Link copied to clipboard
private val tvItemFeedUpvoteCounter: TextView
Text view for the number of upvotes.
tvItemFeedUsername
Link copied to clipboard
private val tvItemFeedUsername: TextView
Text view for the username of the user who posted.

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

getItemFeedPost
Link copied to clipboard
fun getItemFeedPost(): ImageView
Returns the image view for the posted artwork.
getItemFeedProfilePic
Link copied to clipboard
fun getItemFeedProfilePic(): CircleImageView
Returns the image view for the profile picture of the user who posted.
getItemFeedUsername
Link copied to clipboard
fun getItemFeedUsername(): TextView
Returns the username of the user who posed.
setItemFeedBookmark
Link copied to clipboard
fun setItemFeedBookmark(bookmark: Boolean)
Updates the view depending on whether the posted artwork is bookmarked
setItemFeedBookmarkOnClickListener
Link copied to clipboard
fun setItemFeedBookmarkOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for bookmarking the posted artwork.
setItemFeedCommentCounter
Link copied to clipboard
fun setItemFeedCommentCounter(numComments: String?)
Sets the number of comments on the posted artwork to the given string.
setItemFeedCommentOnClickListener
Link copied to clipboard
fun setItemFeedCommentOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for commenting on the posted artwork.
setItemFeedComments
Link copied to clipboard
fun setItemFeedComments(comments: String?)
Sets the text inside the text view related to the comments on the posted artwork to the given string.
setItemFeedPost
Link copied to clipboard
fun setItemFeedPost(post: String)
Sets the posted artwork to photo specified by the given URI.
setItemFeedProfileOnClickListener
Link copied to clipboard
fun setItemFeedProfileOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for the profile picture and username of the user who posted the artwork.
setItemFeedProfilePic
Link copied to clipboard
fun setItemFeedProfilePic(picture: String)
Sets the profile picture of the user who posted to the photo specified by the given URI.
setItemFeedShareOnClickListener
Link copied to clipboard
fun setItemFeedShareOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for sharing the posted artwork on Facebook.
setItemFeedTitle
Link copied to clipboard
fun setItemFeedTitle(title: String?)
Sets the title of the posted artwork to the given string.
setItemFeedUpvote
Link copied to clipboard
fun setItemFeedUpvote(upvote: Boolean)
Updates the view depending on whether the posted artwork is upvoted.
setItemFeedUpvoteCounter
Link copied to clipboard
fun setItemFeedUpvoteCounter(upvotes: String?)
Sets the number of upvotes of the posted artwork to the given string.
setItemFeedUpvoteOnClickListener
Link copied to clipboard
fun setItemFeedUpvoteOnClickListener(onClickListener: View.OnClickListener)
Sets the onclick listener for upvoting the posted artwork.
setItemFeedUsername
Link copied to clipboard
fun setItemFeedUsername(name: String?)
Sets the username of the user who posted 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