自动添加行为的体现? [英] Automatically add activity to Manifest?

查看:136
本文介绍了自动添加行为的体现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我记得(虽然我不知道了),我读了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/> 的行的Andr​​oidManifest.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.

这篇关于自动添加行为的体现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆