Base View Holder
ViewHolder describes an item view and its position information within the RecyclerView.
Author
shaunak
Since
2023-08-15
Functions
Link copied to clipboard
Creates a BaseViewHolder
Link copied to clipboard
Get the current context
Link copied to clipboard
Use itemView instead
Link copied to clipboard
Adds a link to the TextView.
Link copied to clipboard
Sets the background color of the view.
Link copied to clipboard
Sets the background of the view.
Link copied to clipboard
Sets the background of the view.
Link copied to clipboard
Sets the selected state of a selectable control.
Link copied to clipboard
Sets the visibility of the view to VISIBLE (true) or INVISIBLE (false).
Link copied to clipboard
Sets the image of the ImageView using a drawable.
Link copied to clipboard
Sets the image of the ImageView using the resource ID.
Link copied to clipboard
Sets the margins of the view.
Link copied to clipboard
Sets the range of the ProgressBar to 0...max.
Link copied to clipboard
Sets the click event for the view.
Link copied to clipboard
Sets the long-click event for the view.
Link copied to clipboard
Sets the touch event for the view.
Link copied to clipboard
Sets the padding of the view.
Link copied to clipboard
Sets the progress of the ProgressBar.
Sets the progress and maximum value of the ProgressBar.
Link copied to clipboard
Sets the rating of the RatingBar (number of filled stars).
Sets the rating and maximum value for the RatingBar.
Link copied to clipboard
Sets the selected state of the view.
Link copied to clipboard
Sets the tag for the view.
Link copied to clipboard
Sets the text of the TextView.
Link copied to clipboard
Sets the text color of the TextView.
Link copied to clipboard
Apply the font to the specified viewId and enable subpixel rendering.
Link copied to clipboard
Sets the visibility of the view to VISIBLE (true) or GONE (false).