ViewGroupDrawingOrderHelper

Helper to handle implementing ViewGroups with custom drawing order based on z-index.

Constructors

Link copied to clipboard
constructor(viewGroup: ViewGroup)

Functions

Link copied to clipboard
open fun getChildDrawingOrder(childCount: Int, index: Int): Int
The index of the child view that should be drawn.
Link copied to clipboard
open fun handleAddView(view: View)
This should be called every time a view is added to the ViewGroup in addView.
Link copied to clipboard
open fun handleRemoveView(@Nullable view: View)
This should be called every time a view is removed from the ViewGroup in removeView and removeViewAt.
Link copied to clipboard
If the ViewGroup should enable drawing order.
Link copied to clipboard
open fun update()
Recheck all children for z-index changes.