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

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

    I think u want to change the default settings of android studio. Whenever a layout or Activity in created u want to create "RelativeLayout" by default. In that case, flow the step below

    1. click any folder u used to create layout or Activity
    2. then "New>> Edit File Templates
    3. then go to "Other" tab
    4. select "LayoutResourceFile.xml" and "LayoutResourceFile_vertical.xml"
    5. change "${ROOT_TAG}" to "RelativeLayout"
    6. click "Ok"

    you are done

提交回复
热议问题