package com.google.android.material.tabs;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import l.p3;
import x8.m;

/* JADX INFO: loaded from: classes2.dex */
public class TabItem extends View {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final CharSequence f23280a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Drawable f23281b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f23282c;

    public TabItem(Context context) {
        this(context, null);
    }

    public TabItem(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, m.TabItem);
        p3 p3Var = new p3(context, typedArrayObtainStyledAttributes);
        this.f23280a = typedArrayObtainStyledAttributes.getText(m.TabItem_android_text);
        this.f23281b = p3Var.b(m.TabItem_android_icon);
        this.f23282c = typedArrayObtainStyledAttributes.getResourceId(m.TabItem_android_layout, 0);
        p3Var.e();
    }
}
