Android responsive layout

杀马特。学长 韩版系。学妹 提交于 2019-11-28 10:57:21

Over and all, you need to create different layouts/drawables for supporting all the screens. It depends on your requirement, say for example, if you would want to include 2 buttons in small screen and 4 buttons on large screens then obvious you have to create different layouts.

If you would want to display same number of buttons in all screens then I would suggest you to prepare different set of images/drawables and include them in your project. Here you don't need to do anything other than placing images in particular drawable folders.

One more thing, If its a plain background then you can create 9-patch image so that it can stretch with whatever size you want or your device supports.

More study:

  1. http://developer.android.com/guide/practices/screens_support.html
  2. Supporting Different Screen Sizes
  3. Supporting Different Densities
  4. Implementing Adaptative UI Flows

I recommend you to read this documentation http://developer.android.com/guide/practices/screens_support.html.

or this article "Designing for Multiple Screens" http://developer.android.com/training/multiscreen/index.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!