- stateSet
- The new set of states to be displayed.
Documentation for this section has not yet been entered.
Specify a set of states for the drawable. These are use-case specific, so see the relevant documentation. As an example, the background for widgets like Button understand the following states: [NoType:android/R$attr;Href=../../../../reference/android/R.attr.html#state_focused, NoType:android/R$attr;Href=../../../../reference/android/R.attr.html#state_pressed].
If the new state you are supplying causes the appearance of the Drawable to change, then it is responsible for calling Drawable.InvalidateSelf in order to have itself redrawn, and true will be returned from this function.
Note: The Drawable holds a reference on to stateSet until a new state array is given to it, so you must not modify this array during that time.