本文介绍了Kotlin:我怎样才能让Android Studio在课堂底部实现界面功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Kotlin类中实现接口时:
When implementing an interface in a Kotlin class:
当我在ClassName上按Alt + Enter时,我可以让IDE通过实现成员添加接口的功能。
When I press Alt+Enter on ClassName I can have the IDE add an interface's functions via 'implement members'.
令人讨厌的是,在Kotlin中,这些函数被添加到类的顶部。我希望在课程结束时添加它们(就像在Java中一样)。
It's kind of annoying that in Kotlin these functions are added at the top of the class. I would like them to be added at the end of the class (just like in Java).
我该怎么做?
推荐答案
现在没有可能控制方法的顺序。请观看,以便在实施时收到通知。
Right now there is no possibility to control the order of the methods. Please watch the corresponding issue to get notified when this is implemented.
这篇关于Kotlin:我怎样才能让Android Studio在课堂底部实现界面功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!