Android setOnclicklistener parameter

后端 未结 6 1520
忘了有多久
忘了有多久 2021-02-06 07:58

I\'m a beginner to android, while setting onclick listener to a button, what does the parameter passed mean:

 btn1.setOnClickListener(new OnClickListener() {

         


        
6条回答
  •  野的像风
    2021-02-06 08:04

    Interface definition for a callback to be invoked when a view is clicked.

    abstract void onClick(View v) Called when a view has been clicked.

提交回复
热议问题