android - preform ontouch over two ImageView in overlay? -
My problem occurs when I click on both intersection spheres. Preform click
I need an image preform, then when I click on the intersection area, the View view only priority.
Public Boolean On-Touch (see V, Motion Event Event) {// Todo Auto-Generated Method Stub v.performClick (); // View Image 1 if (v.getId () == RID.Card1) {If (! Cardflag [0]) {Animation A = Animation. Anamagam (main activity. This, R. anem. AmvuP12); V.clearAnimation (); V.setAnimation (a); }} // ImageView2 if (v.getId () == RID.Card2) {if card! ({Cardflog [1]) {Animation A = Animation. Anamination (main activity. This, R. Anime, Ampup 10); V.clearAnimation (); V.setAnimation (a); } return false; }
try it
public boolean on-touch (see V, Motion event event) {/ TODO Automatically generated method stub v.performClick (); // View Image 1 if (v.getId () == RID.Card1) {If (! Cardflag [0]) {Animation A = Animation. Anamagam (main activity. This, R. anem. AmvuP12); V.clearAnimation (); V.setAnimation (a); }} // ImageView2 if (v.getId () == RID.Card2) {if card! ({Cardflog [1]) {Animation A = Animation. Anamination (main activity. This, R. Anime, Ampup 10); V.clearAnimation (); V.setAnimation (a); } Back true; }
When you return the true
Comments
Post a Comment