Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

266
Visualizações
Why ".kt" extension is sometimes visible and sometimes not?

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

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

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.

over 4 years ago · Santiago Trujillo Relatório

0

This could happen if activity does not meet one or more of these points:

  1. One activity file should contain only one class.
  2. One activity file class name declaration must correspond to the good filename (filename must equals class name).
  3. There are no top-level declarations (constants, variables).
over 4 years ago · Santiago Trujillo Relatório

0

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).

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda