SubContainerHolder

data class SubContainerHolder<VM : PanelSubContainerViewModel<SD>, SD>(val view: ViewGroup, val subContainerViewModel: VM) : PanelContainerElementHolder<VM, SD>

Holds a PanelContainerElement.SubContainer.

Use inflateSubContainerAndBindViewModel to inflate a PanelContainerElement.SubContainer layout and construct a PanelContainerElementHolder instance.

Parameters

view

The panel sub-container.

subContainerViewModel

The panel sub-container view model.

SD

The type of the panel sub-container data. The data is derived from the panel container data.

Constructors

Link copied to clipboard
fun <VM : PanelSubContainerViewModel<SD>> SubContainerHolder(view: ViewGroup, subContainerViewModel: VM)

Properties

Link copied to clipboard
val subContainerData: SD

The panel sub-container data. The data is derived from the panel container data.

Link copied to clipboard
val subContainerViewModel: VM
Link copied to clipboard
open override val view: ViewGroup

Extensions

Link copied to clipboard

Returns a PanelFragmentContainerHolder referencing the first matching FragmentContainerView in this panel sub-container. A FragmentContainerView is considered a match if its view ID matches the stubId. If stubId is null any FragmentContainerView matches.