package ῲ.㶋.K;

import android.content.Context;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.os.Build;
import android.view.animation.Animation;
import android.widget.ImageView;
import ῲ.ᨨ.ᨨ.C1729;

/* renamed from: ῲ.㶋.K.K  reason: contains not printable characters */
/* compiled from: CircleImageView */
public class C2292 extends ImageView {

    /* renamed from: ʬ  reason: contains not printable characters */
    public int f7915;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Animation.AnimationListener f7916;

    public C2292(Context context, int i) {
        super(context);
        float f = getContext().getResources().getDisplayMetrics().density;
        this.f7915 = (int) (3.5f * f);
        int i2 = Build.VERSION.SDK_INT;
        ShapeDrawable shapeDrawable = new ShapeDrawable(new OvalShape());
        C1729.m4472(this, f * 4.0f);
        shapeDrawable.getPaint().setColor(i);
        int i3 = Build.VERSION.SDK_INT;
        setBackground(shapeDrawable);
    }

    public void onAnimationEnd() {
        super.onAnimationEnd();
        Animation.AnimationListener animationListener = this.f7916;
        if (animationListener != null) {
            animationListener.onAnimationEnd(getAnimation());
        }
    }

    public void onAnimationStart() {
        super.onAnimationStart();
        Animation.AnimationListener animationListener = this.f7916;
        if (animationListener != null) {
            animationListener.onAnimationStart(getAnimation());
        }
    }

    public void onMeasure(int i, int i2) {
        super.onMeasure(i, i2);
        int i3 = Build.VERSION.SDK_INT;
    }

    public void setBackgroundColor(int i) {
        if (getBackground() instanceof ShapeDrawable) {
            ((ShapeDrawable) getBackground()).getPaint().setColor(i);
        }
    }
}
