Is it safe to call AddView in init inside custom ViewGroup?

前端 未结 0 1347
星月不相逢
星月不相逢 2020-12-18 08:04

I\'ve tested the following:

class Test(context: Context): ViewGroup(context) {

    var textBox = Text(context)

    init {
        textBox.text = "HELLO         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题