I 'm developing an app for smartphone and tablet. With xml was simple.. but with compose? I can put value or string into xml different folder and get if device is a smartphone or tablet. is there other method?
c
Chris Sinco [G]
11/18/2021, 4:00 AM
For strings, the resource qualifier model should still work and that is a good way to manage it. For the UI code itself, start with this guide as things are still developing for how to best handle it in Compose: https://developer.android.com/jetpack/compose/layouts/adaptive
a
Android75
11/18/2021, 4:04 AM
thanks. Tutorial is for foldable layout.. but it's a good start for me
c
Chris Sinco [G]
11/18/2021, 4:08 AM
The guidance applies the same to tablet since at this point the inner display of foldables are just squarish tablets that are bigger than phones 🤷♂️