Android - setOnClickListener for TextView

后端 未结 6 1960
孤街浪徒
孤街浪徒 2021-02-05 10:47

It should be straightforward, but I am not sure where something is wrong. I try to catch the click on the TextView with:

public void runNextTask(){
         


        
6条回答
  •  遥遥无期
    2021-02-05 11:33

    for every view component we can call setOnclickLister() like that for TextView also call

    textview.setOnclickListener(new setOnclickListener
                               {
                                    public void onclick()
                                                       {
    
    
                                                        }
                               }
                                );``
    

提交回复
热议问题