更改Android Studio的默认布局
2017-10-28 13:29
375 查看
谷歌发布新版本的androidStudio之后 一直力推ConstraintLayout 布局
但是对于不喜欢用的人来说就有点麻烦了 每次都要手动更改 嘻嘻 这个其实是可以修改的
首先打开androidStudio的安装目录 ,我的是E:\Application\androidStudio
进入之后,进入到以下文件夹\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"
xmlns:app="http://schemas.android.com/apk/res-auto"
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>
但是对于不喜欢用的人来说就有点麻烦了 每次都要手动更改 嘻嘻 这个其实是可以修改的
首先打开androidStudio的安装目录 ,我的是E:\Application\androidStudio
进入之后,进入到以下文件夹\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"
xmlns:app="http://schemas.android.com/apk/res-auto"
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>
相关文章推荐
- 修改Android studio新建activity默认根布局
- Android Studio2.3更换默认的ConstraintLayout布局
- Android studio 首次创建工程默认gradle配置更改(避免每次新建工程都进行更改)
- Android Studio 打包Apk文件,更改默认打包apk文件名称
- Android Studio2.3更换默认的ConstraintLayout布局
- 解决Android studio2.2版本之后默认扁平化布局问题
- webpart制作小技巧_更改默认部件版式布局
- Android Studio 2.3更换默认的ConstraintLayout布局
- Android Studio---常用快捷键、更改默认快捷键
- AlertDialog更改系统默认布局的方法
- 如何更改Android studio中SDK,AVD的默认路径
- 树莓派(raspberry pi) 更改键盘布局 Debian
- 去掉chrome浏览器默认的input、textarea的边框(border)和背景(background) 及chrome下不可更改textarea大小
- 更改搜索框内默认文字字体颜色
- 更改Myeclipse默认的Jsp PageEncoding
- 关于新建Android Studio项目时默认的编译sdk版本导致的兼容问题
- windows平台下 wampserver(php集成环境)修改Mysql密码的问题及wampserver更改默认web根目录
- ubuntu11.04更改默认JDK
- [导入][原创]更改IE浏览器默认的查看源文件编辑器-注册表文件下载
- 更改TimePicker、DatePicker的Spinner样式默认分隔线颜色