Eclipse Android layout designer - add new screen sizes for previewing

Jonathan Wareham picture Jonathan Wareham · Feb 6, 2013 · Viewed 10.1k times · Source

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?

Answer

f20k picture f20k · Feb 6, 2013

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.