How to set Relative Layout as default layout

前端 未结 2 1368
萌比男神i
萌比男神i 2021-01-01 05:03

I usually use Relative layout for most of my activity. I want to make Android studio create Relative layout by default when I create new activity, instead of Constraint Layo

相关标签:
2条回答
  • 2021-01-01 05:38

    goto
    '...\Android\Android Studio\plugins\android\lib\templates\activities\common\root\res\layout\simple.xml'
    and change default layout

    0 讨论(0)
    1. Right click on layout folder -> New -> Edit File Templates...
    2. A dialog opened, go to "Other" tab.
    3. Change the content of "LayoutResourceFile.xml" and "LayoutResourceFile_vertical.xml" Change root tag to the type of layout you want. Hope this help :)

    0 讨论(0)
提交回复
热议问题