LayoutProvider

fun interface LayoutProvider<VM>

Provides a layout resource ID for a given view model. This allows for individual items within the same priority layout to have different layouts.

Functions

Link copied to clipboard
abstract fun getLayoutId(viewModel: VM): Int

Returns the layout ID for the given view model.

Link copied to clipboard

Returns the layout ID for the overflow control. Can be null if no overflow indicator is desired.