[android-developers] Re: Listening multiple button

2012-08-28 Thread Thesalan
Yes of course! In the layout, you have just to specify the name of the function that you want to trigger in the attribute onClick of each buttons Le mardi 28 août 2012 14:27:34 UTC+2, Haris a écrit : Hai all.. For my application I am using several buttons... Is it possible to

Re: [android-developers] Re: Listening multiple button

2012-08-28 Thread Justin Anderson
Or you can add the listener programatically in your code... That is how I prefer to set up click events. http://developer.android.com/reference/android/view/View.html#setOnClickListener%28android.view.View.OnClickListener%29 Thanks, Justin Anderson MagouyaWare Developer