1. Download our Official Android App: Forums for Android!

Click listener to a button

Discussion in 'Android Lounge' started by acidcromaticle, Aug 10, 2010.

  1. acidcromaticle

    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Aug 10, 2010

    Aug 10, 2010
    2
    0
    25
    Hello, i want to know if there is a short way to do a event listener other than the folowing: I want to make a sudoku game and the boxez that are for the numbers are buttons in my aplication. I have aproximatively 90 buttons, and i made for all butons onclick events (aprox. 90 events).
    I want to know if there is a way to do a general action listener and to get from that listener the buton that has been clicked, so that i dont need to keep the 90 click events.

    Thank you very much for the help !
     

    Advertisement

Share This Page

Loading...