设置Android Studio工程布局文件的默认布局
生活随笔
收集整理的這篇文章主要介紹了
设置Android Studio工程布局文件的默认布局
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
每次創建新的工程后,布局文件的的布局總是ConstraintLayout,如何更改?
進入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"><TextViewandroid:layout_width="match_parent"android:layout_height="match_parent"android:gravity="center"android:text="Hello World" /> </LinearLayout>保存更改,以后創建的新工程里的默認布局就是LinearLayout
轉載于:https://www.cnblogs.com/buyishi/p/9188763.html
總結
以上是生活随笔為你收集整理的设置Android Studio工程布局文件的默认布局的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: idea conf文件_JavaWe商品
- 下一篇: android申请权限一次性申请多个,A