setConstraintVerticalBias

fun View.setConstraintVerticalBias(bias: Float?)

Sets the vertical bias for the View inside a ConstraintLayout to the give bias, if bias is not null. If bias is null, the vertical bias constraint is restored to its initial value.

Throws

when the parent is not a ConstraintLayout.