Home » Android » Scroll the Layout Editor in Android ADT Eclipse Plug-in

Scroll the Layout Editor in Android ADT Eclipse Plug-in

Posted by: admin June 15, 2020 Leave a comment

Questions:

Has anyone figured out how to scroll the contents of the Layout Editor when those contents overflow one “screen”? I’m talking about at design-time while using the ADT Layout Editor, not scrolling at run-time on a physical device (that works fine).

How to&Answers:

Turn off clipping in android layout editor.

“toggle clipping” button is at the top-right corner in android layout editor

Hope this helps.

Answer:

Configure your API level to be more than 5, that will enable the toggle button.

Answer:

I know this is an old question but when editing a layout you want to use in a scroll editor, you can add ” android:layout_height=”3000dp”

For example:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="3000dp" >

This makes the layout in the editor very long, then when you are done you can switch it back to match_parent.

Answer:

Changing the device type to a 10′ tablet(layout editor top left 2nd option) made the screen big enough for me to fit everything in without having to scroll.
Do your thing and then revert to normal size.