Skip to content

Instantly share code, notes, and snippets.

@Kozlov-V
Last active September 13, 2016 02:56
Show Gist options
  • Save Kozlov-V/6129942 to your computer and use it in GitHub Desktop.
Save Kozlov-V/6129942 to your computer and use it in GitHub Desktop.
Android Button
public class Demo extends Activity {
private View.OnClickListener curlPostListener;
private Button curlPost;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
InitializeApp();
}
private void InitializeApp() {
curlPost = (Button) findViewById(R.id.button);
curlPostListener = new View.OnClickListener() {
public void onClick(View v) {
}
};
curlPost.setOnClickListener(curlPostListener);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment