简体   繁体   English

在Android ADT Eclipse插件中滚动布局编辑器

[英]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.

相关问题 插件:com.android.ide.eclipse.adt错误 - Plug-in: com.android.ide.eclipse.adt error 用于Eclipse的ADT插件,无法创建Android测试项目 - ADT Plug-in for Eclipse, cannot create Android Test Project 提供StackOverflowErrors的Android ADT Eclipse布局编辑器 - Android ADT Eclipse Layout Editor giving StackOverflowErrors 插件com.android.ide.eclipse.adt无法加载类android - Plug-in com.android.ide.eclipse.adt was unable to load class android 我想在使用Android Eclipse ADT插件的同时自定义构建过程 - I want to customize the build process while still using the Android Eclipse ADT plug-in Eclipse ADT布局编辑器:无属性 - Eclipse ADT Layout Editor: no Properties 如何为eclipse安装最新版本的ADT插件 - How to install last version of ADT plug-in for eclipse Eclipse 报告渲染库比 ADT 插件更新 - Eclipse reports rendering library more recent than ADT plug-in 我安装了Eclipse ADT,没有任何错误消息,但是重新启动后,我看不到任何Android插件 - I installed Eclipse ADT without any error message, but after rebooting, I can't see any Android plug-in 在Eclipse中调试其他人的android源代码时遇到常规问题-ADT插件可能无法正常运行 - Having routine problem debugging other people's android source code in eclipse - ADT plug-in might not be functioning properly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM