- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
55 lines
1.7 KiB
Java
55 lines
1.7 KiB
Java
package androidx.core.widget;
|
|
|
|
import android.content.res.ColorStateList;
|
|
import android.graphics.PorterDuff;
|
|
import android.widget.ImageView;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ImageViewCompat {
|
|
@Nullable
|
|
public static ColorStateList getImageTintList(@NonNull ImageView imageView) {
|
|
return Api21Impl.getImageTintList(imageView);
|
|
}
|
|
|
|
public static void setImageTintList(@NonNull ImageView imageView, @Nullable ColorStateList colorStateList) {
|
|
Api21Impl.setImageTintList(imageView, colorStateList);
|
|
}
|
|
|
|
@Nullable
|
|
public static PorterDuff.Mode getImageTintMode(@NonNull ImageView imageView) {
|
|
return Api21Impl.getImageTintMode(imageView);
|
|
}
|
|
|
|
public static void setImageTintMode(@NonNull ImageView imageView, @Nullable PorterDuff.Mode mode) {
|
|
Api21Impl.setImageTintMode(imageView, mode);
|
|
}
|
|
|
|
private ImageViewCompat() {
|
|
}
|
|
|
|
@RequiresApi(21)
|
|
public static class Api21Impl {
|
|
private Api21Impl() {
|
|
}
|
|
|
|
public static ColorStateList getImageTintList(ImageView imageView) {
|
|
return imageView.getImageTintList();
|
|
}
|
|
|
|
public static void setImageTintList(ImageView imageView, ColorStateList colorStateList) {
|
|
imageView.setImageTintList(colorStateList);
|
|
}
|
|
|
|
public static PorterDuff.Mode getImageTintMode(ImageView imageView) {
|
|
return imageView.getImageTintMode();
|
|
}
|
|
|
|
public static void setImageTintMode(ImageView imageView, PorterDuff.Mode mode) {
|
|
imageView.setImageTintMode(mode);
|
|
}
|
|
}
|
|
}
|