Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Android layout designer - add new screen sizes for previewing

The graphical layout designer in the Eclipse ADT includes the ability to preview how the layout will look on a variety of screen sizes/resolutions. My question - is it possible to add new custom screen sizes to this list, to accommodate new devices when they come out? If so, how?

like image 542
Jonathan Wareham Avatar asked Feb 06 '13 14:02

Jonathan Wareham


2 Answers

Window -> Android Virtual Device Manager -> Device Definitions Tab -> New Device

Once you fill out all the properties, it should be an available option in the layout editor.

Edit: Restarting Eclipse/ADT may be required, as mentioned in the comments.

like image 142
f20k Avatar answered Sep 23 '22 09:09

f20k


Yes it is possible and you need to follow the next steps:

  1. You start by defining a new device defininition with the specs that you want: Windows -> Android Virtual Device Manager -> Device Definitions Tab (New Device);

  2. Then you will see that in your layout editor when choosing the device to render the layout for, you will have 3 categories: Generic, Google and User

  3. Furthermore, you can add this device to your devices list for layout rendering by using Manual Previews and Add as thumbnail when your device is selected for rendering.

like image 30
mirel.cocosila Avatar answered Sep 25 '22 09:09

mirel.cocosila