Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

DrawableAlphaProperty

public class DrawableAlphaProperty
extends Property<Drawable, Integer>

java.lang.Object
   ↳ android.util.Property<android.graphics.drawable.Drawable, java.lang.Integer>
     ↳ com.google.android.material.animation.DrawableAlphaProperty


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

Summary

Fields

public static final Property<Drawable, Integer> DRAWABLE_ALPHA_COMPAT

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

Public methods

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

Inherited methods

From class android.util.Property
From class java.lang.Object

Fields

DRAWABLE_ALPHA_COMPAT

Property<Drawable, Integer> DRAWABLE_ALPHA_COMPAT

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

Public methods

get

Integer get (Drawable object)

Parameters
object Drawable

Returns
Integer

set

void set (Drawable object, 
                Integer value)

Parameters
object Drawable

value Integer