public CheckBoxifiedTextView(Context context, CheckBoxifiedText aCheckBoxifiedText) {
...
mCheckBox.setOnClickListener( new OnClickListener()
{
/**
* Check or uncked the current checkbox!
*/
@Override
public void onClick(View v) {
// Force both the checkbox and our own type to be cehcked or unchecked!
// It's not needed to check the box again but reusing our functions is not too bad
setCheckBoxState(getCheckBoxState());
}
});
...
}