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

前端 未结 16 1084
遥遥无期
遥遥无期 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:39

    The easiest method is to go to your .xml file in text mode, and replace the top line:

    And then proceed to replace it with:

    If you then go back into design mode, you can see that you now have a relative layout. This also automatically changes the end tag, so no issues there.

提交回复
热议问题