Package-level declarations
Types
A Drawable that shows the current Drawable value from a liveData instance.
A LiveDataDrawable that resolves its LiveData contents from the given URI.
A DrawableResolver that resolves a drawable from the given uri.
A Drawable that draws the given text. The text will be placed in the center of the drawable's bounding rectangle.
A DrawableResolver that creates a Drawable with a text retrieved from a StringResolver.
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.
A convenience binding adapter for setting a RemoteDrawable as the drawable for an ImageView, allowing the uri to be shown in the ImageView. If uri is null or not yet loaded, the placeholder will be shown.
A convenience binding adapter for setting a RemoteDrawable as the drawable for an ImageView, allowing the uri to be shown in the ImageView. If uri is null or not yet loaded, the placeholder will be shown even error is not null. If error is defined and the loading fails error will be shown. If uri, placeholder and error are not null and error happen during download first placeholder will be shown then after error occurs error will be shown.