Cut vision transparency so as not to fix onclick?

Say you have a view that is a circle or a balloon, and you want to have two onClick or onTap capture layers.

For example, a mapView with a balloon on top.

The image has transparency for it to the left and right of the peak. Does anyone know how to cut this transparency so as not to absorb onClick and allow it to go to mapview instead?

+3
source share
1 answer

Do you know the size of the bottle? If so, then find the upper left part of the balloon in the layout, and then in the method onTouchfind the current coordinates in which the touch event occurred.

, , false ballon onTouch. , mapView.

+1

Source: https://habr.com/ru/post/1793648/


All Articles