heightPercent

open fun heightPercent(percent: Float): T

Sets the height of the Component to be a percentage of its parent's height. Note that if the parent has unspecified height (e.g. it is a RecyclerView), then setting this will have no effect.

Parameters

percent

a value between 0 and 100.

See also