cannot find symbol method OnClickListener android

后端 未结 1 1031
误落风尘
误落风尘 2021-01-26 13:48

I\'m trying to generate a group of buttons programatically and make them clickable in a fragment. However, I get:

error: cannot find symbol method OnClickListene         


        
相关标签:
1条回答
  • 2021-01-26 14:35

    replace this line :

     tag.OnClickListener(this);
    

    with :

    tag.setOnClickListener(this);
    
    0 讨论(0)
提交回复
热议问题