I'm trying to change the background color of my Button when it's pressed so I'm creating a drawable resource file to customise the different button states.
I'm looking at an example xml file for this use case and I'm trying to understand what <item>
and <selector>
tags are - and what they're doing.
I've tried searching but couldn't find any explanations.