LayoutHeaderListItemViewFactory

class LayoutHeaderListItemViewFactory(@LayoutRes layoutRes: Int) : HeaderListItemViewFactory

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

Throws

android.content.res.Resources.NotFoundException

if the given layout cannot be found during create.

Constructors

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

Functions

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

Creates a header view within the given parent.