Scroll the Layout Editor in Android ADT Eclipse Plug-in

匿名 (未验证) 提交于 2019-12-03 00:46:02

问题:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!