returnMeasurements
fun View.returnMeasurements(widthMeasureSpec: Int, heightMeasureSpec: Int, measurements: (widthMode: Int, heightMode: Int, widthSize: Int, heightSize: Int, initialWidth: Int, initialHeight: Int) -> Unit = { _, _, _, _, _, _ -> })
Use in View.onMeasure to simplify measurements
Receiver
View
Parameters
widthMeasureSpec
Int
heightMeasureSpec
Int
measurements
Function6<@kotlin.ParameterName Int, @kotlin.ParameterName Int, @kotlin.ParameterName Int, @kotlin.ParameterName Int, @kotlin.ParameterName Int, @kotlin.ParameterName Int, Unit>