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?
-
I would suggest, if you haven't already, to update your ADT. Google keeps adding some new features to their ADT which are very helpful which include a feature that you describing. – Rob Avery IV Feb 06 '13 at 14:49
4 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.

- 3,106
- 3
- 23
- 32
-
2Many thanks, had to restart Eclipse before my new device was visible in the layout designer but all working now. – Jonathan Wareham Feb 06 '13 at 14:59
-
-
This is a terrific answer. I +1ed it. I'm still stumped on how to get it to include the ICS/Jellybean menu (with the home button) in the preview. I set the AVD for the right Android version, but it's not showing up. What am I overlooking? – Yevgeny Simkin May 11 '13 at 00:58
-
@Dr.Dredel Which menu are you referring to? The navigation (Back/Home/Recent softkeys) can be enabled by checking the Navigation option on the Device States area. – f20k May 12 '13 at 03:27
-
works perfectly..was able to do 13 inch screen. and YES, you must restart – jordan koskei Jun 20 '14 at 17:59
Yes it is possible and you need to follow the next steps:
You start by defining a new device defininition with the specs that you want: Windows -> Android Virtual Device Manager -> Device Definitions Tab (New Device);
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
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.

- 61
- 1
- 5
there is another . just change the device from the xml editor -> generic -> Tablet 7.0 /Tablet 10.0 . that works for me.

- 2,463
- 1
- 22
- 20
If you have the new version of the ADT plugin you can't do it, but if your version is other one you can watch this question, it can helps you ScrollView - How to scroll down while designing layout in Eclipse?

- 1
- 1

- 2,600
- 2
- 23
- 30