$ 0 0 You need to check where on the screen the user taps. When you know that, you can work out which button has been pressed.