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.
精彩评论