How to handle different sizes of screen on android

后端 未结 3 595
鱼传尺愫
鱼传尺愫 2020-12-21 20:41

First, I run program on emulator. After that, I run on many android phones. Some are very small, some are show in rotate side then can\'t rotate back, and can\'t scroll (I d

相关标签:
3条回答
  • 2020-12-21 20:44

    Really think you should look at relative layouts, esp if you are starting with android now. Its a little harder, since you cant give absolute coordinates for any of your items, but you position your items with respect to one another. After that you dont need to worry abt different screen sizes.

    0 讨论(0)
  • 2020-12-21 20:45

    The developer docs have lots of good guidance about this in the article on Supporting Multiple Screens. Under the Best Practices section, they recommend not using AbsoluteLayout. If you share what you are trying to accomplish, we may be able to suggest a way that works on a wide range of screens.

    0 讨论(0)
  • 2020-12-21 21:07

    fo rthis problem u use Support screens tag in manifestfile.For further reference see the below link Support screens

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