get Color State List Or Null
Returns the ColorStateList if it can be retrieved from the drawable
, or null otherwise.
In particular:
- If the
drawable
is a ColorStateListDrawable, the method will return thedrawable
's ColorStateList. - If the
drawable
is a ColorDrawable, the method will return a containing thedrawable
's color.