onLayout

protected open override fun onLayout()

Called after the rendering tree onBeforeDraw cycle is completed and before the onDraw cycle is called.

onBeforeDraw -->onLayout -->onDraw

Override this function to relocate elements within your UI element.