设置Android(安卓)Studio工程布局文件的默认布局
16lz
2021-01-26
每次创建新的工程后,布局文件的的布局总是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"> <TextView android: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的Animation之LayoutAnimation使用方法(控件设置动画)
- 生成so
- Gradle Android最新自动化编译脚本教程
- Android(安卓)的 SimpleAdapter
- [Android]如何创建一个View的分割线
- 线性布局分割
- Google Maps API申请 之 Android(安卓)Maps API
- Android(安卓)使用ExoPlayer视频播放 (一)
- [置顶] Google Maps Android(安卓)API V2在Android(安卓)SDK lev