Skip to content

Instantly share code, notes, and snippets.

@alexjlockwood
Created November 13, 2014 18:07
Show Gist options
  • Save alexjlockwood/1c2b10ae6d395cc669e7 to your computer and use it in GitHub Desktop.
Save alexjlockwood/1c2b10ae6d395cc669e7 to your computer and use it in GitHub Desktop.
public class TransitionActivity extends Activity implements View.OnClickListener {
private static final Transition TRANSITION = new Fade();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mRootView = findViewById(R.id.root_view);
mRootView.setOnClickListener(this);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getActionMasked() == MotionEvent.ACTION_UP) {
}
return super.onTouchEvent(event);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment