How to support all the different resolutions of android products

前端 未结 5 1630
我在风中等你
我在风中等你 2020-12-03 02:20

All the different resolutions of the different Android products are driving me nuts.

My first android app that I wrote was designed so it supported the three commonl

5条回答
  •  醉话见心
    2020-12-03 02:37

    Don't worry about the slight difference in resolution: 540x960 is only slightly bigger than 480x800. The extra vertical space is easy: it gives you more room for your lists. For horizontal space, as long as you're handling your layouts correctly you'll simply have extra padding (30pix ea) on the sides.

    Unfortunately, full-width images (480 wide) are a slightly bigger problem. If you want pixel perfect images, you'll want to use scaleType="center" so the image centers but not scales. If you want full width, you can use scaleType="fitCenter" to make it fill. It will be a bit fuzzy... but so many thing on Android are ;-)

提交回复
热议问题