Package 

Class DeferredDrawable.Attribute

  • All Implemented Interfaces:
    com.backbase.deferredresources.DeferredDrawable

    
    public final class DeferredDrawable.Attribute
     implements DeferredDrawable
                        

    A wrapper for a Drawable. Optionally mutates each resolved Drawable. Optionally provide transformations (such as Drawable.setTint) to apply each time the Drawable is resolved.

    If transformations are supplied, mutate should be true.

    • Constructor Detail

      • DeferredDrawable.Attribute

        DeferredDrawable.Attribute(Integer resId, Function2<Drawable, Context, Unit> transformations)
        Convenience constructor that sets mutate to true when transformations are supplied.
      • DeferredDrawable.Attribute

        DeferredDrawable.Attribute(Integer resId, Boolean mutate)
      • DeferredDrawable.Attribute

        DeferredDrawable.Attribute(Integer resId)