ADD week 5

This commit is contained in:
2025-03-31 16:33:42 +02:00
parent 86f265f22d
commit bf645048e6
4927 changed files with 544053 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package com.google.android.material.animation;
import android.graphics.drawable.Drawable;
import android.util.Property;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public class DrawableAlphaProperty extends Property<Drawable, Integer> {
public static final Property<Drawable, Integer> DRAWABLE_ALPHA_COMPAT = new DrawableAlphaProperty();
private final WeakHashMap<Drawable, Integer> alphaCache;
private DrawableAlphaProperty() {
super(Integer.class, "drawableAlphaCompat");
this.alphaCache = new WeakHashMap<>();
}
@Override // android.util.Property
public Integer get(Drawable drawable) {
return Integer.valueOf(drawable.getAlpha());
}
@Override // android.util.Property
public void set(Drawable drawable, Integer num) {
drawable.setAlpha(num.intValue());
}
}