[FIXED] Get height of element Jetpack Compose

Issue

I want to get height of my button(or other element) in Jetpack Compose. Do you know how to get?

Solution

If you want to get the height of your button after composition, then you could use: onGloballyPositionedModifier.

It returns a LayoutCoordinates object, which contains the size of your button.

Answered By – user3872620

Answer Checked By – Timothy Miller (Easybugfix Admin)

Leave a Reply

(*) Required, Your email will not be published