Search in sources :

Example 1 with BootstrapButton

use of com.beardedhen.androidbootstrap.BootstrapButton in project Android-Bootstrap by Bearded-Hen.

the class BootstrapButtonGroupExample method onChildAddExampleClicked.

@OnClick(R.id.bbutton_group_child_add_btn)
void onChildAddExampleClicked() {
    int count = childChange.getChildCount();
    BootstrapButton button = new BootstrapButton(this);
    button.setText(String.format("%d", count + 1));
    childChange.addView(button);
}
Also used : BootstrapButton(com.beardedhen.androidbootstrap.BootstrapButton) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)1 BootstrapButton (com.beardedhen.androidbootstrap.BootstrapButton)1