首先打开你的Android Sudio安装目录,进入到以下文件夹\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"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</LinearLayout>