GridViewHolder

open class GridViewHolder @JvmOverloads constructor(view: View, gridStrategy: GridStrategy = DefaultGridStrategy()) : PickerViewHolder, Inducible

ViewHolder for displaying items in a grid layout.

This ViewHolder is responsible for binding data to the views within a grid item, including handling icon loading, selection state, highlighting, and accessibility. It also implements the Inducible interface to provide a visual indication (shake animation) when an action is performed on the item.

Parameters

view

The root view of the grid item.

gridStrategy

Strategy for grid layout composable types.

Inheritors

Constructors

Link copied to clipboard
constructor(view: View, gridStrategy: GridStrategy = DefaultGridStrategy())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val shimmerLayout: ShimmerFrameLayout
Link copied to clipboard

Functions

Link copied to clipboard
open override fun bindData(data: ViewData)

Updates the enabled/disabled state of this ViewHolder if the ViewData is an instance of AppInfoViewData.

Link copied to clipboard
open override fun induce(): DisposableHandle

Induces a visual effect (shake animation) on the item view.

Link copied to clipboard
open override fun onViewRecycled()

Called when the view is recycled.