Skip to content

Instantly share code, notes, and snippets.

@seungwoonlee
Last active December 12, 2015 09:09
Show Gist options
  • Save seungwoonlee/4749629 to your computer and use it in GitHub Desktop.
Save seungwoonlee/4749629 to your computer and use it in GitHub Desktop.
Simple Android onClick()
public void onClick(View v) {
if (v.getId() == R.id.Button01) { // if you pressed the 'Button01'
finish(); // finish this Activity
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment