Android Eclipse ADT 8.0.0(和8.0.1)问题 - 无法在大纲视图中通过拖放创建视图层次结构
在最新版本之前,我能够使用拖动创建层次结构 n' drop,在大纲视图上执行。 升级后,我不能使用控件(“+”、“-”和箭头) 丢失的。
那么我现在应该如何构建视图层次结构呢?
Before the newest version I was able to create hierarchies using drag
n' drop, performed on the outline view.
Since the upgrade, I can't and the controls ('+', '-' and arrows) are
missing.
So how am I suppose to build view hierarchies now?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用的是
RelativeLayout
,则将View
拖动到您想要放置该View
的边缘。那应该有效。如果您使用的是
LinearLayout
,您只需按照习惯拖放它们即可。Drag the
View
to on of the edges you want to have thatView
on if you are using aRelativeLayout
. That should work.If you are using a
LinearLayout
you can just drag'n drop them as you are used to.显然这是一个已知问题,将在 ADT 9.0 中修复。您现在可以安装它的实验/夜间版本。
Apperantly that's a known issue and will be fixed in ADT 9.0. you can install experimental / nightly build of it now.
在线性布局中拖放视图是可行的...前提是布局不为空并且其高度/宽度未设置为wrap_content!
示例:创建一个线性布局。设置布局宽度/高度以填充父级或某个固定值(例如 64dip)。现在,您可以在其中拖放一个文本视图。
drag'n drop of views in a linear layout works... provided the layout is not empty and its heigth/width are not set to wrap_content !!!
example : create a linearLayout. Set the layout width / height to fill parent or some fixed value (e.g. 64dip). You can now drag'n drop, let's say, a textView in it.