shrink

fun Element.shrink(invalidateParents: Boolean = false)

Reduces the size of the element to (0, 0) and invalidates it, effectively reducing its size to the minimum. Label is an exception: itd width is set to its preferred width due to how labels work.

For groups, see Element.deepShrink.

Parameters

invalidateParents

whether to invalidate hierarchy