The Ultimate guide to supporting all screen sizes in Jetpack Compose using Material 3 design

preview_player
Показать описание


Window size class Dependency:

Рекомендации по теме
Комментарии
Автор

Is this the best approach out there because lets say we want to target 20 android smartphone only devices with all having different screen sizes and resolution then having all the button sizes, spacing between UI components for all 20 devices can be a real time consuming process for just one screen. Is there an API that can handle it automatically or we have to go with this approach?. Let me know please because whenever I work on UI I come into this problem quite often.

anasfarhad
Автор

why dont you allow us to save your vid into my playlists???

bolero
Автор

Where can I find this code? Can't find it in the links provided

tylerbrecht-eqzs
Автор

can you please for testing give us the emulator you use in this video with every specific dimension class please

ayoubdev
Автор

your setup will stop working if the user runs the app on a non-standard display, plus this approach requires a lot of code. It seems to me that it is better to use calculated dp values width or height / k, where k - the required coefficient

exey.artwork
Автор

what is the name of the repository in github

allanandliftedhands
Автор

Why couldn't the jetpack compose designer make the dimensions in percentages like in html so that we wouldn't have to suffer from assigning dimensions for each individual screen?

aleksandrnikolaev