开发者

Android Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

开发者 https://www.devze.com 2023-01-30 00:42 出处:网络
Before the newest version I was able to create hierarchies using drag n\' drop, performed on the outline view.

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 th开发者_StackOverflow社区e controls ('+', '-' and arrows) are missing.

So how am I suppose to build view hierarchies now?


Drag the View to on of the edges you want to have that View on if you are using a RelativeLayout. That should work.

If you are using a LinearLayout you can just drag'n drop them as you are used to.


Apperantly that's a known issue and will be fixed in ADT 9.0. you can install experimental / nightly build of it now.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消