SubContainerHolder
data class SubContainerHolder<VM : PanelSubContainerViewModel<SD>, SD>(val view: ViewGroup, val subContainerViewModel: VM) : PanelContainerElementHolder<VM, SD>
Content copied to clipboard
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)
Content copied to clipboard
Properties
Extensions
Link copied to clipboard
fun <VM : PanelSubContainerViewModel<SD>, SD> PanelContainerElementHolder.SubContainerHolder<VM, SD>.findPanelFragmentContainerAndSetId(panelFragmentContainerId: PanelFragmentContainerId, @IdRes stubId: Int? = null): PanelFragmentContainerHolder
Content 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.