Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, Which screen size do you develop for?

I am creating a simple game in android so I can create something and learn how to program in Android (I'm a noob).

Right now in my layout editor (i think thats what its called, basically the place where you can create your layout xml files) there are many sizes on the top left... which one should i target? do i need to make a separate layout for each one of them?

Thanks! R

like image 333
Ryan Avatar asked Nov 21 '25 09:11

Ryan


1 Answers

The screen size selection is only intended to give you an impression of what the layout looks like on various screen sizes and densities. A good place to get started is Common Layout Objects and Supporting Multiple Screens.

When developing for Android, you should not target a specific screen size, but instead make layout elements fit proportionally. An exception may be x-large displays such as tablets, for which a great read is Distributing to Specific Screens. An example of getting elements to position nicely is this question.

like image 105
Paul Lammertsma Avatar answered Nov 22 '25 23:11

Paul Lammertsma