MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 AppLovinAdView.java 源代码,内容仅作参考
package com.applovin.adview;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.applovin.impl.adview.b;
import com.applovin.impl.sdk.x;
import com.applovin.sdk.AppLovinAd;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdLoadListener;
import com.applovin.sdk.AppLovinAdSize;
import com.applovin.sdk.AppLovinSdk;
public class AppLovinAdView extends RelativeLayout {
public static final String NAMESPACE = "http://schemas.applovin.com/android/1.0";
private b f7290n;
public AppLovinAdView(Context context, AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
public AppLovinAdView(Context context, AttributeSet attributeSet, int i10) {
super(context, attributeSet, i10);
a(null, null, null, context, attributeSet);
}
public AppLovinAdView(AppLovinAdSize appLovinAdSize, Context context) {
this(appLovinAdSize, (String) null, context);
}
public AppLovinAdView(AppLovinAdSize appLovinAdSize, String str, Context context) {
super(context);
a(appLovinAdSize, str, null, context, null);
}
public AppLovinAdView(AppLovinSdk appLovinSdk, AppLovinAdSize appLovinAdSize, Context context) {
this(appLovinSdk, appLovinAdSize, null, context);
}
public AppLovinAdView(AppLovinSdk appLovinSdk, AppLovinAdSize appLovinAdSize, String str, Context context) {
super(context.getApplicationContext());
a(appLovinAdSize, str, appLovinSdk, context, null);
}
private void a(AttributeSet attributeSet, Context context) {
DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();
TextView textView = new TextView(context);
textView.setBackgroundColor(Color.rgb(220, 220, 220));
textView.setTextColor(-16777216);
textView.setText("AppLovin Ad");
textView.setGravity(17);
addView(textView, displayMetrics.widthPixels, (int) TypedValue.applyDimension(1, 50.0f, displayMetrics));
}
private void a(AppLovinAdSize appLovinAdSize, String str, AppLovinSdk appLovinSdk, Context context, AttributeSet attributeSet) {
if (isInEditMode()) {
a(attributeSet, context);
return;
}
b bVar = new b();
this.f7290n = bVar;
bVar.a(this, context, appLovinAdSize, str, appLovinSdk, attributeSet);
}
public void destroy() {
b bVar = this.f7290n;
if (bVar != null) {
bVar.destroy();
}
}
public b getController() {
return this.f7290n;
}
public AppLovinAdSize getSize() {
b bVar = this.f7290n;
if (bVar != null) {
return bVar.getSize();
}
return null;
}
public String getZoneId() {
b bVar = this.f7290n;
if (bVar != null) {
return bVar.getZoneId();
}
return null;
}
public void loadNextAd() {
b bVar = this.f7290n;
if (bVar != null) {
bVar.loadNextAd();
} else {
x.E("AppLovinSdk", "Unable to load next ad: AppLovinAdView is not initialized.");
}
}
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
b bVar = this.f7290n;
if (bVar != null) {
bVar.onAttachedToWindow();
}
}
@Override
public void onDetachedFromWindow() {
b bVar = this.f7290n;
if (bVar != null) {
bVar.onDetachedFromWindow();
}
super.onDetachedFromWindow();
}
public void pause() {
b bVar = this.f7290n;
if (bVar != null) {
bVar.pause();
}
}
public void renderAd(AppLovinAd appLovinAd) {
b bVar = this.f7290n;
if (bVar != null) {
bVar.renderAd(appLovinAd);
}
}
public void resume() {
b bVar = this.f7290n;
if (bVar != null) {
bVar.resume();
}
}
public void setAdClickListener(AppLovinAdClickListener appLovinAdClickListener) {
b bVar = this.f7290n;
if (bVar != null) {
bVar.setAdClickListener(appLovinAdClickListener);
}
}
public void setAdDisplayListener(AppLovinAdDisplayListener appLovinAdDisplayListener) {
b bVar = this.f7290n;
if (bVar != null) {
bVar.setAdDisplayListener(appLovinAdDisplayListener);
}
}
public void setAdLoadListener(AppLovinAdLoadListener appLovinAdLoadListener) {
b bVar = this.f7290n;
if (bVar != null) {
bVar.setAdLoadListener(appLovinAdLoadListener);
}
}
public void setAdViewEventListener(AppLovinAdViewEventListener appLovinAdViewEventListener) {
b bVar = this.f7290n;
if (bVar != null) {
bVar.setAdViewEventListener(appLovinAdViewEventListener);
}
}
public void setExtraInfo(String str, Object obj) {
if (str == null) {
throw new IllegalArgumentException("No key specified");
}
b bVar = this.f7290n;
if (bVar != null) {
bVar.setExtraInfo(str, obj);
}
}
@Override
public String toString() {
return "AppLovinAdView{zoneId='" + getZoneId() + "\", size=" + getSize() + '}';
}
}