“添加未实现的方法"Android Studio 中的功能 [英] "Add unimplemented methods" feature in the Android Studio

查看:24
本文介绍了“添加未实现的方法"Android Studio 中的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Eclipse IDE 中有一个很棒的功能,它允许您添加(实现)特定类的所有必需方法.我正在 Android Studio IDE 中寻找此功能,但到目前为止还没有成功.有没有类似的东西?对我来说,它是关键功能之一,离不开它.

In the Eclipse IDE there is a great feature allows you to add (implement) all of the required methods of the particular class. I'm looking for this feature in the Android Studio IDE, but without success so far. Is there something similar? For me it is one of the key-features and can't live without.

我不想选择方法来实现.我希望 IDE 像 Eclipse 那样为我做这件事.例如,当我在任何 Activity 扩展类中单击添加未实现的方法"时,所有这些 onCreate() onPause() onResume() 已生成.

I don't want to choose methods to implemet. I want IDE to do it for me like Eclipse were doing. For example when I clicked "Add unimplemented methods" inside any Activity extented class all of these onCreate() onPause() onResume() were generated.

推荐答案

当然有.叫做实现方法覆盖方法.默认快捷键是 CTRL-ICTRL-O.请参阅实施方法覆盖方法.

Of course there is. It is called Implement methods or Override Methods. The default shortcut is CTRL-I and CTRL-O. See descrption of Implementing Methods and Overriding Methods.

这篇关于“添加未实现的方法"Android Studio 中的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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