Join Slack
Powered by
Can I query a composable for its height and width ...
# compose
a
Alex
04/01/2021, 7:35 AM
Can I query a composable for its height and width dimensions? The use case is downloading an image in a specific size (to save bandwidth). In standard Android I would do something like
Copy code
view.onLayoutDone { view -> downloadImageWith(view.width, view.height) }
Extremely simplified of course, but you get the idea.
a
Albert Chang
04/01/2021, 7:46 AM
See
this thread
and
this thread
.
2
Views
Open in Slack
Previous
Next