Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Android applications for all resolutions?

Hi,

I am a beginner in Android development. I want to create an Application which can be run on different screen resolutions. This App should then run on Android phones as well as Android tablets.

Is it possible? If so, how should I handle the UI design? Just set up different drawable folders?

like image 450
Durgesh Patel Avatar asked Aug 01 '11 05:08

Durgesh Patel


3 Answers

Please go through the Developers guide first. Supporting Multiple Screens provides a pretty good overview of what you are trying to achieve.

like image 120
Arnab Chakraborty Avatar answered Nov 09 '22 05:11

Arnab Chakraborty


It's a challenging task being honest. Most of the iPhone devs enjoy the fixed screen size but we Android devs have to go through this problem. I can recomend few practices that I'm following

  • Try not to use Fixed height and weight as much as you can
  • Stick to Linear Layout if the layout is not complex. Go to relative layout only when its really mandatory.
  • Use Wrap and fill parent than giving fixed sizes..

These are the few I can think of.

like image 24
Jay Mayu Avatar answered Nov 09 '22 05:11

Jay Mayu


Typically you just provide different layouts and resources for different screen densities and orientations as described in Android documentation.

like image 32
Alex Gitelman Avatar answered Nov 09 '22 06:11

Alex Gitelman