Files
rr3-apk/decompiled-community/sources/com/mbridge/msdk/dycreator/baseview/MBStarLevelLayoutView.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -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());
}
}
}