In on of my Android Studio Kotlin projects, sometimes .KT is shown and sometimes not, in the Project explorer, in the Activity folder.
Android Studio显示或隐藏应用程序的标准是什么.KT分机?
Thanks
In on of my Android Studio Kotlin projects, sometimes .KT is shown and sometimes not, in the Project explorer, in the Activity folder.
Android Studio显示或隐藏应用程序的标准是什么.KT分机?
Thanks
Solution :
一个活动文件只能包含一个类.
一个活动文件类名称声明必须对应于好的文件名(文件名必须等于类名).