setCanShrink

open fun setCanShrink(canShrink: Boolean)

Sets whether the button size can be smaller than the natural size of its contents.

For text buttons, setting @can_shrink to true will ellipsize the label.

For icon buttons, this function has no effect.

Since

4.12

Parameters

canShrink

whether the button can shrink