I have the latest android Studio (2.3 beta 3) and it seems ConstraintLayout is the default when creating a project. How can I make Android Studio use the RelativeLayout as t
inefficient solution:
just do it: in component tree right click on ConstraintLayout and select relativelayout on convert view...
A very short way to do it is just right click on the activity_main.xml design background and select convert view then select Relativealayout. Your code in Xml Text will auto. Change. Goodluck
The easiest way would be to select Relativelayout from the Pallete, and then use it.
Well, I saw the answer above and it worked for me too. But, I gave it a shot, and succeded converting my current project to Relative Layout. Do as follows:
At activity_main.xml tab, change it to text. At the top of it, you'll find the following:
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
Just change all before xmlns to RelativeLayout. Doing so will also change the very bottom line where you would find:
</android.support.constraint.ConstraintLayout>
to
</RelativeLayout>
Problem solved! Be happy :P
None of these solutions worked for me...seemingly until I stumbled across this setting, see image. File > Settings > Editor > Layout Editor > Check "Prefer XML Editor"
https://i.stack.imgur.com/9CHe7.png