Skip to content

Instantly share code, notes, and snippets.

@skatldjs
Created September 15, 2010 02:07
Show Gist options
  • Save skatldjs/580127 to your computer and use it in GitHub Desktop.
Save skatldjs/580127 to your computer and use it in GitHub Desktop.
// 버튼을 만들고
btn = (Button)findViewById(R.id.btn);
// OnClickListener 를 만들고 구현.
btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// 버튼 클릭시 일어날 작업 처리.
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment