Skip to content

Instantly share code, notes, and snippets.

@league
Created November 30, 2011 20:21
Show Gist options
  • Save league/1410641 to your computer and use it in GitHub Desktop.
Save league/1410641 to your computer and use it in GitHub Desktop.
onCreate
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final TextView tv = (TextView) findViewById(R.id.hello_message);
Button b = (Button) findViewById(R.id.button1);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
tv.setText("Thanks for visiting!");
}
});
}
@league
Copy link
Author

league commented May 22, 2015

testing comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment