In the app I've been working on, I would like to have a multiple-state (in my case, three) toggle button, instead of the two that ToggleButton
provides. I've tried to start my own that extends Button
, following the CompoundButton
source, but quite honestly reading over its source got a bit overwhelming.
Is there a way to do a three-state toggle button using just a selector xml or something, or perhaps another method I haven't thought of? I'm rather at a loss of how to do this.