Android Studio New Project, modify the default layout style

Find Android Studio installation directory

D:\Android\Android Studio\plugins\android\lib\templates\activities\common\root\res\layout

Modify the file simple.xml.ftl

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!" />

</LinearLayout> 

 

Guess you like

Origin www.cnblogs.com/lihuawei/p/11457288.html