Files
rr3-apk/decompiled/sources/com/mbridge/msdk/dycreator/baseview/MBStarLevelLayoutView.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

39 lines
1.4 KiB
Java

package com.mbridge.msdk.dycreator.baseview;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.x;
/* loaded from: classes4.dex */
public class MBStarLevelLayoutView extends MBLinearLayout {
public MBStarLevelLayoutView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public void setRating(int i) {
try {
removeAllViews();
if (i == 0) {
i = 5;
}
for (int i2 = 0; i2 < 5; i2++) {
ImageView imageView = new ImageView(getContext());
ViewGroup.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
if (i2 < i) {
imageView.setImageResource(x.a(c.m().c(), "mbridge_download_message_dialog_star_sel", "drawable"));
} else {
imageView.setImageResource(x.a(c.m().c(), "mbridge_download_message_dilaog_star_nor", "drawable"));
}
addView(imageView, layoutParams);
}
} catch (Exception e) {
af.b("MBStarLevelLayoutView", e.getMessage());
}
}
}