[android-developers] Re: how to handle click events for 3x3 image buttons arrays?
On Aug 25, 7:47 am, Hitendrasinh Gohil <hitendrasin...@gmail.com>
wrote:
> Hi,
>
> I am having 3x3 array which contains 3x3 imagebuttons array.I am
> repeating 3x3 imagebuttons 9 times.
> how can i handle click events for that?
Assign a unique ID to each button. Assign the same OnClickListener to
each button. In the OnClick method, inspect the ID of the View that's
received to determine which button was clicked.
- Dave
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home