之前用Eclipse查看方法的时候有一个比较方便的选择,可以选择打开方法的接口定义,或者方法的实现(Open Implementation )
AndroidStudio一直没找到这个选项,百度了一下没找到,到jetbrains的help文档中找,发现是这个按钮(下图)。
以前一直没注意。
- : This method implements a method required by an implemented interface or extended abstract class.
- : This method of an interface or an abstract class is implemented by one or more descendants.
- : This method overrides a method defined by its superclass.
- : This method or field is overridden / implemented by one or more subclasses.
具体可以看:
https://www.jetbrains.com/help/idea/2016.1/navigating-to-super-method-or-implementation.html?search=open%20%20implementation。
不过感觉这个比eclipse稍微麻烦一些,查看回调方法一个实现,要点击到接口中,再点击接口下的实现。不知有没有类似eclipse那样按住ctrl,鼠标移动到方法上就可以直接选择implementation?
看来很多东西是百度 google不出来的,要自己去英文文档中搜啊~