reset password
Author Message
rizviae
Posts: 4
Posted 21:09 May 03, 2015 |

Isn't 

ButtonClickListener a built-in class for android?

I keep getting errors that it does not recognize it.

Following line gives the error:

private ButtonClickListener myButtonClick;

 

msargent
Posts: 519
Posted 21:13 May 03, 2015 |

There is OnClickListener that you set to a Button. 

Gayaneh
Posts: 40
Posted 21:15 May 03, 2015 |

You can use 

  myButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               // do something


            }
        });