@Override
    public boolean performClick() {
        toggle();
        return super.performClick();
    }
<p>Changes the checked state of this button.</p>

@param checked true to check the button, false to uncheck it.
sample/src/main/java/com/liangfeizc/flowlayout/sample/CheckableButton.java