Creating custom view

前端 未结 2 1540
失恋的感觉
失恋的感觉 2021-02-10 20:41

I want to create a custom view TestView class for which I can create object via new TestView(). A new view class however needs a AttributeSet object. F

2条回答
  •  伪装坚强ぢ
    2021-02-10 20:55

    Either of 3 constructor provided by view class can be implemented.. so providing constructor with attributeset is not mandatory.

提交回复
热议问题