-1

I want to design app targeting two devices 10.1 inch tab and 4 inch mobile..How Should I write xml or activities ? Should I create 4(Screen Sizes)*2(land-port)=8 layout folders? or there is any other way to support all screen sizes and orientation?

Mr.India
  • 674
  • 2
  • 9
  • 19
  • You should have two layout xml files one for 4 inch Screen and other one for 10.1 inch, you shall place phone xml in layout folder and tab xml in layout-xlarge folder – Nargis Jun 14 '13 at 06:46

1 Answers1

2

Please have a look at the official Android UI documentation at http://developer.android.com/guide/topics/ui/index.html.

Everything you asked is answered there, e.g. what´s the difference between dp, dip, density, etc.

Also, please refer to this question: What is the difference between "px", "dp", "dip" and "sp" on Android?

Community
  • 1
  • 1
webmonkey
  • 1,083
  • 1
  • 15
  • 33