Files
rr3-apk/decompiled/sources/com/mbridge/msdk/nativex/view/MBNativeRollView.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

63 lines
1.9 KiB
Java

package com.mbridge.msdk.nativex.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.out.Frame;
import com.mbridge.msdk.out.NativeListener;
import java.util.List;
/* loaded from: classes4.dex */
public class MBNativeRollView extends LinearLayout {
private RollingBCView a;
private Context b;
private NativeListener.FilpListener c;
public interface a {
View a(Frame frame, int i);
}
public void setFilpListening(NativeListener.FilpListener filpListener) {
if (filpListener != null) {
this.c = filpListener;
this.a.setFilpListening(filpListener);
}
}
@SuppressLint({"NewApi"})
public MBNativeRollView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
public MBNativeRollView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.b = context;
RollingBCView rollingBCView = new RollingBCView(context);
this.a = rollingBCView;
addView(rollingBCView);
this.a.setLayoutParams(new LinearLayout.LayoutParams((int) (ak.j(context) * 0.9d), -2));
setClipChildren(false);
}
public MBNativeRollView(Context context) {
this(context, null);
}
public void setData(List<Frame> list, Context context, String str, a aVar) {
this.a.setData(list, context, str, aVar);
}
public void setFrameWidth(int i) {
this.a.setLayoutParams(new LinearLayout.LayoutParams(i, -2));
}
@Override // android.view.View
public boolean onTouchEvent(MotionEvent motionEvent) {
return this.a.dispatchTouchEvent(motionEvent);
}
}