Hi, I wanted to know that in jetpack compose what ...
# android
g
Hi, I wanted to know that in jetpack compose what is best way to optimize app for different Screen Size and dpi. In my current project in many place we are using Hard-coded DP and SP for defining layout Size or padding it is looking good in xhdpi device's but it becomes weird on smaller Devices. What is common way to solve this issue ??? I also did some search and only post I found is this. but I still wanted to know if there is any other or easier way to do it. https://proandroiddev.com/supporting-different-screen-sizes-on-android-with-jetpack-compose-f215c13081bd
a
Search “device window class in compose” and you’ll find: https://developer.android.com/jetpack/compose/layouts/adaptive