How to pass view reference to android custom view?

后端 未结 3 657
無奈伤痛
無奈伤痛 2020-12-30 00:14

I did as follows

1) Creating a styleable


    
         


        
3条回答
  •  一个人的身影
    2020-12-30 00:38

    Your described android:id is set to app:linkedView="@+id/tvTest. However, @+id/tvTest is used to create a new id with name "tvTest". What you want to do is use app:linkedView="@id/tvTest.

提交回复
热议问题