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