package com.scwang.smartrefresh.header.internal.pathview;

import IMuAHx_6.Mqv2r_3.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2.QxJ9d_1.QxJ9d_1;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
/* loaded from: classes.dex */
public class PathsView extends View {
    public QxJ9d_1 KQgRr5e_0;

    public PathsView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.KQgRr5e_0 = new QxJ9d_1();
    }

    public boolean KQgRr5e_0(String... strArr) {
        return this.KQgRr5e_0.KQgRr5e_0(strArr);
    }

    @Override // android.view.View
    public void onDraw(Canvas canvas) {
        this.KQgRr5e_0.draw(canvas);
    }

    @Override // android.view.View
    public void onFinishInflate() {
        super.onFinishInflate();
        if (getTag() instanceof String) {
            KQgRr5e_0(getTag().toString());
        }
    }

    @Override // android.view.View
    public void onLayout(boolean z, int i, int i2, int i3, int i4) {
        super.onLayout(z, i, i2, i3, i4);
        this.KQgRr5e_0.setBounds(getPaddingLeft(), getPaddingTop(), Math.max((i3 - i) - getPaddingRight(), getPaddingLeft()), Math.max((i4 - i2) - getPaddingTop(), getPaddingTop()));
    }

    @Override // android.view.View
    public void onMeasure(int i, int i2) {
        QxJ9d_1 qxJ9d_1 = this.KQgRr5e_0;
        super.setMeasuredDimension(View.resolveSize(qxJ9d_1.getBounds().width() + getPaddingLeft() + getPaddingRight(), i), View.resolveSize(qxJ9d_1.getBounds().height() + getPaddingTop() + getPaddingBottom(), i2));
    }

    public void KQgRr5e_0(int... iArr) {
        this.KQgRr5e_0.KQgRr5e_0(iArr);
    }
}
