LayoutContentListItemViewFactory

class LayoutContentListItemViewFactory(@LayoutRes layoutRes: Int) : ContentListItemViewFactory

Creates a TtInformationControl by inflating the provided layoutRes. layoutRes must be inflatable using DataBindingUtil.

Throws

if the given layout cannot be found during create.

when the view has a different type of layout than TtInformationControl

Constructors

Link copied to clipboard
fun LayoutContentListItemViewFactory(@LayoutRes layoutRes: Int)

Functions

Link copied to clipboard
open override fun create(parent: ViewGroup): TtInformationControl

Creates an information control within the given parent.