How to design a layout for 1080*1920 pixel screens? Which layout folder works for Samsung galaxy S4?

前端 未结 1 1803
闹比i
闹比i 2021-02-11 11:18

I\'m creating an application which works for all types of screens, but I\'m having problems while creating layouts for the Samsung Galaxy S4 1080*1920 (5 inch screen).

S

相关标签:
1条回答
  • 2021-02-11 11:52

    If you want to have a layout for your S4, you need to use the values-sw360dp folder.

    The conversion is like this: px * 160 / dpi. In your case: 1080 * 160 / 480 = 360.

    But anyway, your layout should work on all devices, not only the S4.

    0 讨论(0)
提交回复
热议问题