Android Studio新建项目,修改默认布局样式

找到Android Studio安装目录

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

修改其中的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> 

猜你喜欢

转载自www.cnblogs.com/lihuawei/p/11457288.html