Monday, 19 August 2013

onCheckedListener Contextaul actionbar

onCheckedListener Contextaul actionbar

vh.cb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView,
boolean isChecked) {
// TODO Auto-generated method stub
if(isChecked){
startActionMode(mActionCallBack);
}
}
});
This is my current implementation for the checkbox onCheckedChangeListener
.. its a really simple implementation of the contextual actionbar. What I
need now is a solid implementation of the onCheckedChangeListener, which
is to cover the follows:
A check on the item should trigger the contextual action bar.
After one check, the contextual action bar should not be rebuilt(which is
happening now)
Full uncheck of the checkboxes should destroy the contextual action bar.
The tick in the contextual actionbar should cancel the checked state of
the checkboxes and also cancel the contextual actionbar itself.
Finally, since an api is calling on for data, the number of checkboxs in
the listView is not sure.(For now there are 3 checkBoxes). Help please.

No comments:

Post a Comment