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 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); } }