ViewGroupChildren

class ViewGroupChildren(parent: ViewGroup, insert: (index: Int, view: View) -> Unit = { index, view -> parent.addView(view, index) }, remove: (index: Int, count: Int) -> Unit = { index, count -> parent.removeViews(index, count) }) : Widget.Children<View>

Constructors

Link copied to clipboard
constructor(parent: ViewGroup, insert: (index: Int, view: View) -> Unit = { index, view -> parent.addView(view, index) }, remove: (index: Int, count: Int) -> Unit = { index, count -> parent.removeViews(index, count) })

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun insert(index: Int, widget: Widget<View>)

Insert child widget at index.

Link copied to clipboard
open override fun move(fromIndex: Int, toIndex: Int, count: Int)

Move count child widgets from fromIndex to toIndex.

Link copied to clipboard
open override fun onModifierUpdated()

Indicates that Modifiers for the child widgets have changed.

Link copied to clipboard
open override fun remove(index: Int, count: Int)

Remove count child widgets starting from index.