package com.mbridge.msdk.dycreator.baseview; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.GradientDrawable; import android.util.AttributeSet; import com.mbridge.msdk.foundation.tools.ak; import com.mbridge.msdk.foundation.tools.x; import com.mbridge.msdk.widget.FeedBackButton; /* loaded from: classes4.dex */ public class MBFeedBack extends MBTextView { public static String FEEDBACK_BTN_BACKGROUND_COLOR_STR = "#60000000"; public MBFeedBack(Context context) { super(context); a(); } public MBFeedBack(Context context, AttributeSet attributeSet) { super(context, attributeSet); a(); } public MBFeedBack(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); a(); } private void a() { setText(x.a(getContext(), "mbridge_cm_feedback_btn_text", "string")); int a = ak.a(getContext(), 13.0f); setPadding(a, 0, a, 0); setTextIsSelectable(false); setGravity(17); setBackgroundColor(Color.parseColor(FEEDBACK_BTN_BACKGROUND_COLOR_STR)); GradientDrawable gradientDrawable = new GradientDrawable(); gradientDrawable.setCornerRadius(ak.a(r0, 20.0f)); gradientDrawable.setColor(Color.parseColor(FeedBackButton.FEEDBACK_BTN_BACKGROUND_COLOR_STR)); setBackground(gradientDrawable); setTextColor(-1); } }