IViewGroupManager

Interface providing children management API for view managers of classes extending ViewGroup.

Inheritors

Functions

Link copied to clipboard
abstract fun addView(parent: T, child: View, index: Int)

Adds a child view into the parent at the index specified as a parameter

Link copied to clipboard
abstract fun getChildAt(parent: T, index: Int): View?
Link copied to clipboard
abstract fun getChildCount(parent: T): Int

Return the amount of children contained by the view specified as a parameter.

Link copied to clipboard

Returns whether this View type needs to handle laying out its own children instead of deferring to the standard css-layout algorithm. Returns true for the layout to not be automatically invoked. Instead onLayout will be invoked as normal and it is the View instance's responsibility to properly call layout on its children. Returns false for the default behavior of automatically laying out children without going through the ViewGroup's onLayout method. In that case, onLayout for this View type must not call layout on its children.

Link copied to clipboard
open fun removeAllViews(parent: T)

Remove all child views from the parent View.

Link copied to clipboard
abstract fun removeViewAt(parent: T, index: Int)

Removes View from the parent View at the index specified as a parameter.