LiveDataDrawable
A Drawable that shows the current Drawable value from a liveData instance.
LiveDataDrawable will observe liveData while the drawable is visible. Drawables are considered visible when the View containing the drawable calls setVisible. This follows the pattern of AnimationDrawables, which start animating upon being made visible by their view.
Parameters
The drawable LiveData of which the current value is drawn. While the LiveDataDrawable is visible, getDrawable will match the value of liveData. This property is public to offer a convenient observer pattern clients can use to keep track of what this drawable is showing.
Inherited functions
Returns the drawable's dominant color with a brightness adjustment. If no dominant color is available it falls back to defaultColor. The brightness value of the dominant color is adjusted to an average value in between the original one and the defaultColor brightness value. Therefore, the returned dominant color can be brighter or darker than the original dominant color.