Android Studio - How to change the layout

In Eclipse, I can right-click my layout (say, LinearLayout) and click "Change Layout" In Android Studio, I don’t see anything like it. I see Morph, but it will constantly appear. For example, if you create a simple HalloWorld with RelativeLayout, if you right-click on this layout, and in graphical mode, Morphing will not be displayed. If you right-click on a widget in this layout, Morphing will show, but change the type of widgets, not the type of layout.

+4
source share
3 answers

If you want to change the layout, you can do two things:

OPTION 1 1. Just click on your Xml file and select “Text” at the bottom of the screen.

enter image description here

2.

enter image description here

2

1. Design , PS.

enter image description here

enter image description here

, !

+9

- , .

0

You can also use AbsoluteLayout, this is just a change to the Activity_main RelativeLayout. With AbsoluteLayout you are more "free" kkkk

-2
source

All Articles