Skip to content Skip to sidebar Skip to footer

Android Responsive Layout

I am building application (calculator). I use table layout with buttons inside. It looks perfect on screen of Samsung Galaxy II, however it looks very bad on bigger screens. The bu

Solution 1:

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

Solution 2:

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

Post a Comment for "Android Responsive Layout"