ComposableFactory

class ComposableFactory(val composableStrategy: ComposableStrategy)(source)

Factory for creating and managing composable views.

This class handles the conversion between ComposableType and integer view types, inflates composable views, and applies appropriate padding strategies.

Constructors

Link copied to clipboard
constructor(composableStrategy: ComposableStrategy)

Types

Link copied to clipboard

Padding strategies for composable views.

Properties

Link copied to clipboard

The strategy used to determine the ComposableType for a given ViewData.

Link copied to clipboard

Functions

Link copied to clipboard

Returns the ComposableType for the given viewType integer. Throws InvalidParameterException if viewType is not in the composable view type range.

Link copied to clipboard
fun getItemType(viewData: ViewData): Int?

Returns the item type integer for the given ViewData, or null if not composable.

Link copied to clipboard
fun inflateComposableView(parent: ViewGroup, viewType: Int): View

Inflates a composable view for the given viewType and applies the appropriate padding strategy.