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; }  

Two image views in overlay

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

the event will not be given to other listeners

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -