setLayoutWeight

fun setLayoutWeight(@FloatRange(from = 0.0.toDouble()weight: Float)

Set layout weight on LinearLayout.

Parameters

weight

The weight. Must be a float >= 0.0