android - Prevent ToggleButton from switching state -


i have togglebutton, when click it, don't want state change. handle state changes myself when after receive feedback whatever button toggled. how might prevent state change on click?

while think can mark disabled, don't think idea, users used semantic of such button.

if want show state, why don't use imageview , show different images depending on state?


Comments