ComposableActionViewHolder

A concrete implementation of the ActionableComposableViewHolder for displaying item view with an action button inside it.

This ViewHolder is responsible for binding data to the view, handling click events on the action button, and managing the visibility of a divider. The divider's visibility is determined by whether a custom click listener is set on the item view itself.

Parameters

frameView

The view to be used by this ComposableActionViewHolder

Constructors

Link copied to clipboard
constructor(frameView: View)

Functions

Link copied to clipboard
open override fun bindData(viewData: ViewData)
Link copied to clipboard
open override fun onBind(itemView: View)

Binds click events on the parent ViewHolder's view to this ActionableComposableViewHolder's doAction if the parent view doesn't handle click events itself.

Link copied to clipboard
open override fun onViewRecycled(itemView: View)

Cleans up any resources when the view is recycled. It removes the click listener from the itemView and sets the doAction to null.