In your onTouchListener
you should check whether the event (MotionEvent
) is in the transparent area of the background or not.
Either you can make a separate onTouchListener
for each view/button and return false if the event is in the transparent area (of the View
argument) or you can make a single listener for all of the buttons, ignore the View
argument and check all of your three views to determine in which one the event is.