Skip to content

Instantly share code, notes, and snippets.

@catehstn
Last active Jan 21, 2016
Embed
What would you like to do?
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