Life Selector Xml
Here's a basic example of a state list drawable for a button:
Use code with caution. 4. Interactive Overlays and Choice Elements life selector xml
A selector file works like a traffic light. It contains several "item" blocks, each linked to a specific condition. It checks the object's state, finds the first matching condition, and applies its instruction. Here's a basic example of a state list