Files
rr3-apk/decompiled/sources/com/mbridge/msdk/nativex/view/mbfullview/StarLevelLayoutView.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

45 lines
1.5 KiB
Java

package com.mbridge.msdk.nativex.view.mbfullview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.x;
/* loaded from: classes4.dex */
public class StarLevelLayoutView extends LinearLayout {
public StarLevelLayoutView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public StarLevelLayoutView(Context context) {
super(context);
}
@SuppressLint({"NewApi"})
public StarLevelLayoutView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
public void setRating(int i) {
removeAllViews();
if (i == 0) {
i = 5;
}
for (int i2 = 0; i2 < 5; i2++) {
View imageView = new ImageView(getContext());
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
if (i2 < i) {
imageView.setBackgroundResource(x.a(getContext(), "mbridge_demo_star_sel", "drawable"));
} else {
imageView.setBackgroundResource(x.a(getContext(), "mbridge_demo_star_nor", "drawable"));
}
layoutParams.leftMargin = ak.a(getContext(), 7.0f);
addView(imageView, layoutParams);
}
}
}