How to switch from the default ConstraintLayout to RelativeLayout in Android Studio

前端 未结 16 1137
遥遥无期
遥遥无期 2020-12-02 07:49

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

16条回答
  •  时光说笑
    2020-12-02 08:37

    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:

    Just change all before xmlns to RelativeLayout. Doing so will also change the very bottom line where you would find:

    
    

    to

    
    

    Problem solved! Be happy :P

提交回复
热议问题