Last active
January 21, 2016 03:31
-
-
Save catehstn/4a652553aca249319c84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imageView.setOnTouchListener(new View.OnTouchListener() { | |
@Override | |
public boolean onTouch(View view, MotionEvent event) { | |
originalImageView.setVisibility(event.getAction() == MotionEvent.ACTION_DOWN ? | |
View.VISIBLE : View.GONE); | |
return true; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment