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).
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Turn off clipping in android layout editor.
"toggle clipping" button is at the top-right corner in android layout editor
Hope this helps.
回答2:
Configure your API level to be more than 5, that will enable the toggle button.
回答3:
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.
回答4:
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.