您的位置:首页 > 移动开发

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" />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息