Dynamic vs XML layout in Android?

后端 未结 7 589
不思量自难忘°
不思量自难忘° 2020-12-06 00:57

I\'m new to Android development and have started creating my own UI. I see that you can either create it dynamically something like this (Dynamic Layouts):

@         


        
7条回答
  •  Happy的楠姐
    2020-12-06 01:39

    It's completely your own choice. You'll probably find most Android Developers use XML to code their layouts of their app, since this was specifically designed for this. Yet I personally come from a game development background and don't really require Android's provided UI widgets, so when ever I do use a UI widget, I simply code it in java.

    I hope this helps.

提交回复
热议问题