ViewFactory

interface ViewFactory<T>

Factory for creating and binding Views to data of type T.

See InflateViewFactory.

Inheritors

Functions

Link copied to clipboard
abstract fun bind(view: View, data: T, viewLifecycleOwner: LifecycleOwner)

Binds the given view to data and the given viewLifecycleOwner.

Link copied to clipboard
abstract fun createView(context: Context, parent: ViewGroup?, attachToParent: Boolean): View

Creates a view.

Link copied to clipboard
abstract fun rebind(view: View, data: T)

Rebinds the given view to data.