package com.zyao89.view.zloading;

import android.content.Context;
import android.content.res.TypedArray;
import android.text.TextUtils;
import android.util.AttributeSet;
import ඓ.ᕣ.K.K.AbstractC0747;
import ඓ.ᕣ.K.K.ᕣ.C0741;

public class ZLoadingTextView extends ZLoadingView {

    /* renamed from: 㸾  reason: contains not printable characters */
    public String f3402;

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

    @Override // com.zyao89.view.zloading.ZLoadingView
    public void onAttachedToWindow() {
        setText(this.f3402);
        super.onAttachedToWindow();
    }

    @Override // com.zyao89.view.zloading.ZLoadingView
    @Deprecated
    public void setLoadingBuilder(Z_TYPE z_type) {
        super.setLoadingBuilder(Z_TYPE.TEXT);
    }

    public void setText(String str) {
        this.f3402 = str;
        AbstractC0747 k = this.f3403;
        if (k instanceof C0741) {
            ((C0741) k).m2169(this.f3402);
        }
    }

    public ZLoadingTextView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, -1);
    }

    public ZLoadingTextView(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.f3402 = "Zyao89";
        super.setLoadingBuilder(Z_TYPE.TEXT);
        try {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.ZLoadingTextView);
            String string = obtainStyledAttributes.getString(R$styleable.ZLoadingTextView_z_text);
            obtainStyledAttributes.recycle();
            if (!TextUtils.isEmpty(string)) {
                this.f3402 = string;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
