Eclipse Android Layout Designer - Add New Screen Sizes for Preview

The graphical layout designer in Eclipse ADT includes the ability to preview how the layout will look at different screen sizes / resolutions. My question is - can I add new custom screen sizes to this list to accommodate new devices when they come out? If so, how?

+8
android eclipse android-layout eclipse-adt
source share
4 answers

Window → Android Virtual Device Manager → Device Definitions Tab → New Device

After filling in all the properties, it should be available in the layout editor.

Edit: You may need to restart Eclipse / ADT as noted in the comments.

+22
source share

Yes, it is possible, and you need to follow these steps:

  • Start by defining a new device definition with the specifications you want: Windows -> Android Virtual Device Manager -> Device Definitions tab (new device);

  • Then you will see that in the layout editor when choosing a device for rendering the layout you will have 3 categories: General , Google and User

  • In addition, you can add this device to your device list for rendering layouts using manual previews and add as thumbnails when your device is selected for rendering.

+1
source share

there is another. just change the device from xml editor → generic → Tablet 7.0 / Tablet 10.0. it works for me.

+1
source share

If you have a new version of the ADT plugin, you can’t do it, but if your version is different, you can look at this question, it can help you ScrollView - How to scroll down when developing a layout in Eclipse?

0
source share

All Articles