I have a group of FrameLayout which I want to be checkable/selectable,
FrameLayout
That is, after a click I would like the FrameLayout to display as
In addition to Graeme's answer above do the following modification to toggle()
@Override public void toggle() { mChecked = !mChecked; refreshDrawableState(); }