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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With