如何在Android中使用Kotlin动态添加按钮?
我是Kotlin新手,请帮忙。
您可以通过调用按钮的构造函数来动态创建一个按钮。
var myButton = Button(this);
这将是活动。