我记得(虽然我不知道了),我读了IntelliJ IDEA的IDE可以自动添加新装箱活动
到清单
文件。然而,这确实发生在我的项目。是否有一个特殊的命令或此功能不存在?
I remember (although I am not sure any more) I read that IntelliJ IDEA IDE can automatically add newly crated Activities
into the Manifest
file. However, this does happen in my projects. Is there a special command for that or this feature does not exist?
在项目视图使用新 | 机器人组件 | 活动,类型名称,如样品
,你会得到一个Java源文件创建延伸活动
和<活动机器人:名称=。view.Sample/>
的行的AndroidManifest.xml
。
In the Project View use New | Android Component | Activity, type name, like Sample
, you will get a Java source file created that extends Activity
and <activity android:name=".view.Sample"/>
line in the AndroidManifest.xml
.
在旧的IDEA版本中有对活动,服务等不同的新的菜单项。
In older IDEA versions there were separate New menu items for Activity, Service, etc.