51 lines
1.5 KiB
Java
51 lines
1.5 KiB
Java
package H;
|
|
|
|
import android.content.res.ColorStateList;
|
|
import android.content.res.Resources;
|
|
import android.graphics.ColorFilter;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.AttributeSet;
|
|
import java.io.IOException;
|
|
import org.xmlpull.v1.XmlPullParser;
|
|
import org.xmlpull.v1.XmlPullParserException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class a {
|
|
public static void a(Drawable drawable, Resources.Theme theme) {
|
|
drawable.applyTheme(theme);
|
|
}
|
|
|
|
public static boolean b(Drawable drawable) {
|
|
return drawable.canApplyTheme();
|
|
}
|
|
|
|
public static ColorFilter c(Drawable drawable) {
|
|
return drawable.getColorFilter();
|
|
}
|
|
|
|
public static void d(Drawable drawable, Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
|
|
drawable.inflate(resources, xmlPullParser, attributeSet, theme);
|
|
}
|
|
|
|
public static void e(Drawable drawable, float f2, float f4) {
|
|
drawable.setHotspot(f2, f4);
|
|
}
|
|
|
|
public static void f(Drawable drawable, int i, int i4, int i5, int i6) {
|
|
drawable.setHotspotBounds(i, i4, i5, i6);
|
|
}
|
|
|
|
public static void g(Drawable drawable, int i) {
|
|
drawable.setTint(i);
|
|
}
|
|
|
|
public static void h(Drawable drawable, ColorStateList colorStateList) {
|
|
drawable.setTintList(colorStateList);
|
|
}
|
|
|
|
public static void i(Drawable drawable, PorterDuff.Mode mode) {
|
|
drawable.setTintMode(mode);
|
|
}
|
|
}
|