mercredi 27 juin 2018

Android: Add checkbox to button?

I created a button programmatically:

Button button = new Button(getApplicationContext());
button.setTextSize(30);
button.setGravity(Gravity.START);
button.setText("Button");

Now I want to add a CheckBox to the button. Is there a good way to do this?




Aucun commentaire:

Enregistrer un commentaire