# DrawableAlphaProperty

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/animation/DrawableAlphaProperty.java)

*** ** * ** ***


```
public class DrawableAlphaProperty
```

<br />

*** ** * ** ***

Compat property for getAlpha and setAlpha for pre-K devices.

## Summary

| ### Constants |
|---|---|
| `static final Property<Drawable, Integer>` | `https://developer.android.com/reference/com/google/android/material/animation/DrawableAlphaProperty#DRAWABLE_ALPHA_COMPAT()` A compat Property wrapper around getAlpha and setAlpha. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/lang/Integer` | `https://developer.android.com/reference/com/google/android/material/animation/DrawableAlphaProperty#get(Drawable)(Drawable object)` |
| `void` | `https://developer.android.com/reference/com/google/android/material/animation/DrawableAlphaProperty#set(Drawable,java.lang.Integer)(Drawable object, https://developer.android.com/reference/java/lang/Integer value)` |

## Constants

### DRAWABLE_ALPHA_COMPAT

```
public static final Property<Drawable, Integer> DRAWABLE_ALPHA_COMPAT
```

A compat Property wrapper around getAlpha and setAlpha.

## Public methods

### get

```
public Integer get(Drawable object)
```

### set

```
public void set(Drawable object, Integer value)
```