sbstorm
Newbie
Hi everyone,
I'm blocked with this problem and maybe you can help me. I recently started to develop mobile application and I meet a problem with the size.
I have 2 devices: a redmi note 7 and a sony G3416.
I have defined my elements size and fonts size in each dimens.xml files (mdpi, hdpi, xhdpi...) to support each kind of dpi and the display is correct with almost all the devices.
In my case, the 2 devices use the xxhdpi one. But the problem is if I set the correct size for the 1st device, on the second, the size is too big. And if I reduce to fit the second, it become to small for the first one. The size is not scaling as it should be. For the information, I use the DP and SP unit correctly.
Do you have any idea ? Below some screenshots so you can see the problem. Thanks
I'm blocked with this problem and maybe you can help me. I recently started to develop mobile application and I meet a problem with the size.
I have 2 devices: a redmi note 7 and a sony G3416.
I have defined my elements size and fonts size in each dimens.xml files (mdpi, hdpi, xhdpi...) to support each kind of dpi and the display is correct with almost all the devices.
In my case, the 2 devices use the xxhdpi one. But the problem is if I set the correct size for the 1st device, on the second, the size is too big. And if I reduce to fit the second, it become to small for the first one. The size is not scaling as it should be. For the information, I use the DP and SP unit correctly.
Do you have any idea ? Below some screenshots so you can see the problem. Thanks