[英]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 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).
我在使用ADT布局编辑器时在设计时谈论,而不是在物理设备上运行时滚动(工作正常)。
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" 我知道这是一个老问题,但在编辑你想在滚动编辑器中使用的布局时,可以添加“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. 这使得编辑器中的布局很长,然后在完成后可以将其切换回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. 将设备类型更改为10'平板电脑(布局编辑器左上角的第二个选项)使屏幕足够大,让我无需滚动即可适应所有内容。 Do your thing and then revert to normal size.
做你的事,然后恢复到正常大小。
Turn off clipping in android layout editor. 在Android布局编辑器中关闭剪辑。
"toggle clipping" button is at the top-right corner in android layout editor “切换剪辑”按钮位于android布局编辑器的右上角
Hope this helps. 希望这可以帮助。
将您的API级别配置为大于5,这将启用切换按钮。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.