AS 修改默认继承AppCompatActivity
2017-12-21 10:58
501 查看
1.AS的安装目录:D:\Android Studio\plugins\android\lib\templates\activities\common
其下有个文件:common_globals.xml.ftl
2.搜 elseif appCompatActivity
找到如下,修改value值
<#elseif appCompatActivity>
<global id="superClass" type="string" value="Activity"/>
<global id="superClassFqcn" type="string" value="android.app.Activity"/>
<global id="Support" value="Support" />
<global id="actionBarClassFqcn" type = "string" value="android.app.ActionBar" />
<global id="kotlinActionBar" type="string" value="supportActionBar" />
<global id="kotlinFragmentManager" type="string" value="supportFragmentManager" />
其下有个文件:common_globals.xml.ftl
2.搜 elseif appCompatActivity
找到如下,修改value值
<#elseif appCompatActivity>
<global id="superClass" type="string" value="Activity"/>
<global id="superClassFqcn" type="string" value="android.app.Activity"/>
<global id="Support" value="Support" />
<global id="actionBarClassFqcn" type = "string" value="android.app.ActionBar" />
<global id="kotlinActionBar" type="string" value="supportActionBar" />
<global id="kotlinFragmentManager" type="string" value="supportFragmentManager" />
相关文章推荐
- Android Studio修改默认Activity继承AppCompatActivity
- Android Studio修改默认Activity继承AppCompatActivity
- Android Studio修改默认Activity继承AppCompatActivity
- Android Studio修改默认Activity继承AppCompatActivity
- Android Studio修改默认Activity继承AppCompatActivity
- AndroidStudio默认继承V7包下的AppCompatActivity
- AndroidStudio默认继承V7包下的AppCompatActivity
- Android studio 新建工程activity默认继承AppCompatActivity
- Android Studio 创建窗口默认继承Activity而非AppCompatActivity
- Android Studio 新建 Activity 是默认继承的是 AppCompatActivity 而非 Activity
- Android Studio新建工程默认MainActivity继承ActionBarActivity而不是AppCompatActivity的解决方案
- 为啥Activity默认继承AppCompatActivity
- 继承AppCompatActivity的Activity无法隐藏标题栏及继承Activity在Studio中直接隐藏标题
- ndroid开发小技巧之--------继承AppCompatActivity后设置全屏的问题
- Activity继承自AppCompatActivity隐藏标题栏
- Android中继承AppCompatActivity后如何实现无标题全屏显示
- 继承自AppCompatActivity崩溃闪退问题定位
- 继承AppCompatActivity 移除ActionBar的两种方法
- 继承AppCompatActivity的Activity无法隐藏标题栏解决方案
- Android app图标总是显示默认的机器人图标,且在manifest文件的application中修改无效