How to implement a CustomView with custom selector states?
问题 I want to create a CustomView that displays an image. On click the view should change its state. There should be three states (off, set, notset) the view can represent. I want to do this with a selector in XML. It does not necesseraliy need to be a custom selector. I could reuse three states of the selector (it does not matter if the names of the state are different then). Is there a good way to achieve this? 回答1: Just in case your issue has not resolved itself yet. I do the changing of