Skip to content

Instantly share code, notes, and snippets.

Last active Jan 21, 2016
What would you like to do?
imageView.setOnTouchListener(new View.OnTouchListener() {
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