Last active
December 12, 2015 09:09
-
-
Save seungwoonlee/4749629 to your computer and use it in GitHub Desktop.
Simple Android onClick()
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
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