DrawableAlphaProperty

public class DrawableAlphaProperty
extends Property

java.lang.Object
   ↳ android.util.Property
     ↳ com.google.android.material.animation.DrawableAlphaProperty


Compat property for Drawable.getAlpha() and Drawable.setAlpha(int) for pre-K devices.

Summary

Fields

public static final Property DRAWABLE_ALPHA_COMPAT

A compat Property wrapper around Drawable.getAlpha() and Drawable.setAlpha(int).

Public methods

Integer get(Drawable object)
void set(Drawable object, Integer value)

Inherited methods

Fields

DRAWABLE_ALPHA_COMPAT

public static final Property DRAWABLE_ALPHA_COMPAT

A compat Property wrapper around Drawable.getAlpha() and Drawable.setAlpha(int).

Public methods

get

public Integer get (Drawable object)

Parameters
object Drawable
Returns
Integer

set

public void set (Drawable object, 
                Integer value)

Parameters
object Drawable
value Integer