Android: clicking issue of overlapping imageViews with transparent background -
i have 2 clickable imageviews partially overlap each other, let's big 1 @ bottom base , small 1 on top right corner of it. sample view: this . black circle have problem getting big image's listener. the problem is, transparent area invisible still there, lead ontouch action not "accurate". e.g. clicking on overlapping area, small image transparent , big isn't, small image detected, want big image detected. using ontouchlistener catch colour make transparent areas not clickable won't neither. how can solve please? imageview big, small; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_seventh); big = (imageview) findviewbyid(r.id.imageviewbig); small = (imageview) findviewbyid(r.id.imageviewsmall); big.setontouchlistener(this); small.setontouchlistener(this); } @override public boolean ontouch(view v, motionevent event) { if (event.geta...