a selector is a 'state-list-drawable', ie it 'selects'
depending upon the state of the view it is applied to.
A StateListDrawable is a drawable object defined in XML that uses a several different images to represent the same graphic, depending on the state of the object. For example, a Button widget can exist in one of several different states (pressed, focused, or niether) and, using a state list drawable, you can provide a different background image for each state.
Here is the syntax, as in the docs :
notice the attributes you can set in the the
.
here is an example of a typical selector..