最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android with Kotlin: how does layout work - Stack Overflow

programmeradmin1浏览0评论

I had some experience with Android a few years ago, and I am trying to start again, but it seems some things have changed and I can't really find information on this issue. If you know where I can get the info I would very grateful.

I had the same problem asked in this question: Layout XML folder is missing in Android Studio What I need to know is what was explained on the second answer (I cannot comment there because I don't have enough reputation):

Select "Empty Views Activity" if you want to develop the app using JAVA. Select "Empty Activity" if you want to develop using Kotlin Language

It seems that doing it this way (I am starting with Kotlin) the layout does not get generated, and I do not know the reason. Should I be creating the layouts by hand? Or the way the visual part gets generated has changed?

On the empty project I created where there is no layout, there is a "Hello world" example that works just fine without the layout, that is why I think that the standard of doing things may have changed.

Thanks for your help

发布评论

评论列表(0)

  1. 暂无评论