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

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

    for android studio 3.1

    If you want your default android studio change, just follow bellow steps:

    first

    go to C:\Program Files\Android\Android Studio\plugins\android\lib\templates\activities\common\root\res\layout

    i.e. the file directory where you have installed android studio.

    then

    copy simple.xml from another place just for backup

    after that

    open simple.xml file and replace it's code as bellow

    
    
    
    
    
    

    but if you just want to change this project layout, just go to activity_main.xml and then go to text and post upper code to there

提交回复
热议问题