I'm encountering a conflict where two different screen resolutions are using the same dpi setting. This app is strictly in landscape mode.
Since I'm using the smallest width qualifier in landscape mode, I used the following calculation:
480dpi / 160dpi = 3
1080 / 3 = 360dp
Since 480dpi corresponds to xxhdpi, I created a sw360dp-xxhdpi
resource folder and applied dimen values. However, because the Flip 5 has a width of 2640 and the S23 has 2115, although they share the same sw360dp-xxhdpi
, there was a significant difference in how views appeared on the screen.
How can I more precisely differentiate resources for these two screen resolutions?
I made it by using screen width
qualifier.
I used 480dpi / 160dpi = 3
.
sw360dp-700dp-xxhdpi
for Galaxy S23 and sw360-800dp-xxhdpi
for Flip 5.