In on of my Android Studio Kotlin projects, sometimes .KT is shown and sometimes not, in the Project explorer, in the Activity folder.
What is the criteria used by Android Studio to show or hide the .KT extension ?
Thanks
If a kotlin file has exactly one outer class/object/interface
as the same name of the file, then studio shows just the name without extension.
This could happen if activity does not meet one or more of these points:
Solution :
One activity file should contain only one class.
One activity file class name declaration must correspond to the good filename (filename must equals class name).