mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 18:07:16 +01:00
29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
package com.google.android.material.tabs;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import androidx.appcompat.widget.TintTypedArray;
|
|
import com.google.android.material.R;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public class TabItem extends View {
|
|
public final int customLayout;
|
|
public final Drawable icon;
|
|
public final CharSequence text;
|
|
|
|
public TabItem(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
TintTypedArray obtainStyledAttributes = TintTypedArray.obtainStyledAttributes(context, attributeSet, R.styleable.TabItem);
|
|
this.text = obtainStyledAttributes.getText(R.styleable.TabItem_android_text);
|
|
this.icon = obtainStyledAttributes.getDrawable(R.styleable.TabItem_android_icon);
|
|
this.customLayout = obtainStyledAttributes.getResourceId(R.styleable.TabItem_android_layout, 0);
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
|
|
public TabItem(Context context) {
|
|
this(context, null);
|
|
}
|
|
}
|