Skip to content Skip to sidebar Skip to footer

How To Set Relative Layout As Default Layout

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 Layout. Is

Solution 1:

  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 :)

enter image description here

Solution 2:

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

Post a Comment for "How To Set Relative Layout As Default Layout"