In Android Studio previews you can specify a font-...
# compose-android
t
In Android Studio previews you can specify a font-scaling factor to see if you UI works for different font sizes. But in the Settings (Display size and text) of actual Android devices beside the Font Size you can also change the Dsiplay Size. Which leads to different icon sizes. I just wondering if it is possible to emulate this changes in Compose to check in previews or testing if it all fits. I am not sure what this Display size change does.
y
I think that second one mucks with the density.
☝️ 1
t
It looks like it only changes the size of icons. And most UIs do use vector graphics so the density will not change the size.
y
That changes the device Dp
t
So when i increase the size it will reduce the density and Dp right? So it emulates a physically bigger screen with lower pixel density.
So if i want to make sure that the App still works. I could just reduce the size in Dp. (For testing)
Maybe also reducing the density.
Do anyone know what the maximal scale factor? Is it also 1.5f or maybe 2.0f
y
But maybe measuring on the device is simpler.
t
Ok thank you very much for the information @yschimke