LiveDataDrawable
open class LiveDataDrawable(val liveData: LiveData<Drawable>, initialDrawable: Drawable? = null) : DrawableWrapper
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
liveData
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.
Constructors
Properties
Functions
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard