ComparableDrawable

interface ComparableDrawable : Equivalence<ComparableDrawable>

Comparable Drawable allows drawables to be compared by explicitly implementing the Equivalence.isEquivalentTo. This allows drawables to be compared in a more meaningful way, instead of using Drawable.equals which only checks if the references are equal.

See also

Inheritors

Functions

Link copied to clipboard
abstract override fun isEquivalentTo(other: ComparableDrawable): Boolean