https://kotlinlang.org logo
#compose
Title
# compose
b

bodo

09/17/2020, 5:30 AM
I want to do a different layout for different screen sizes. Can you please tell me how it should be done? (e.g. getting screen size in composable function?)
p

Piotr Witko

09/17/2020, 6:25 AM
You could use a
ConfigurationAmbient
to access screen width and height, ex.
ConfigurationAmbient.current.screenWidthDp
3 Views