How to set relative layout by default

I usually use the Relative layout for most of my work. I want Android Studio to create a default Relative layout when I create a new activity, not a Constraint Layout. Is there any way to do this?

+4
source share
2 answers
  • Right-click the layout folder -> Create -> Modify File Templates ...
  • A dialog box opens, go to the "Other" tab.
  • Change the contents of "LayoutResourceFile.xml" and "LayoutResourceFile_vertical.xml" Change the root tag to the type of layout you want. Hope this help :)

enter image description here

+9


"...\Android\Android Studio\plugins\android\lib\templates\activities\common\root\res\layout\simple.xml"

+1

Source: https://habr.com/ru/post/1649657/


All Articles