Scroll the Layout Editor in Android ADT Eclipse Plug-in
Has anyone figured out how to scroll the contents of the Layout Editor when those contents overfl开发者_JS百科ow 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).
Turn off clipping in android layout editor.
"toggle clipping" button is at the top-right corner in android layout editor
Hope this helps.
Configure your API level to be more than 5, that will enable the toggle button.
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.
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.
精彩评论