Home Forum
Welcome, Guest
Username Password: Remember me

UI Events multiple buttons
(1 viewing) (1) Guest
Discussion related to creating Android software
  • Page:
  • 1

TOPIC: UI Events multiple buttons

UI Events multiple buttons 2 years, 9 months ago #166

When creating the a screen with a number of buttons, I needed to get notified of clicks to several buttons, the only way I see to do this is to get the view object for each button and set the on click listener on each one, this seems a little clumsy.

Is this the correct approach? Anybody have a neater way to do this?
  • mmoore
  • OFFLINE
  • Examiner
  • Posts: 22
  • Karma: 1
  • Page:
  • 1
Time to create page: 0.16 seconds
Copyright © 2012 Android Academy. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
 
Glossary
We have 27 guests online