- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
53 lines
1.7 KiB
Java
53 lines
1.7 KiB
Java
package com.mbridge.msdk.widget;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Context;
|
|
import android.graphics.Color;
|
|
import android.graphics.drawable.GradientDrawable;
|
|
import android.util.AttributeSet;
|
|
import android.widget.TextView;
|
|
import androidx.annotation.RequiresApi;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.foundation.tools.x;
|
|
|
|
@SuppressLint({"AppCompatCustomView"})
|
|
/* loaded from: classes4.dex */
|
|
public class FeedBackButton extends TextView {
|
|
public static String FEEDBACK_BTN_BACKGROUND_COLOR_STR = "#60000000";
|
|
|
|
public FeedBackButton(Context context) {
|
|
super(context);
|
|
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(FEEDBACK_BTN_BACKGROUND_COLOR_STR));
|
|
setBackground(gradientDrawable);
|
|
setTextColor(-1);
|
|
}
|
|
|
|
public FeedBackButton(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
a();
|
|
}
|
|
|
|
public FeedBackButton(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
a();
|
|
}
|
|
|
|
@RequiresApi(api = 21)
|
|
public FeedBackButton(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
super(context, attributeSet, i, i2);
|
|
a();
|
|
}
|
|
}
|