- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
63 lines
1.7 KiB
Java
63 lines
1.7 KiB
Java
package com.applovin.impl.adview;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.graphics.Paint;
|
|
import androidx.core.view.ViewCompat;
|
|
import com.applovin.impl.adview.e;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class n extends e {
|
|
private static final Paint c = new Paint(1);
|
|
private static final Paint d = new Paint(1);
|
|
private static final Paint f = new Paint(1);
|
|
|
|
public n(Context context) {
|
|
super(context);
|
|
c.setColor(-1);
|
|
d.setColor(ViewCompat.MEASURED_STATE_MASK);
|
|
Paint paint = f;
|
|
paint.setColor(-1);
|
|
paint.setStyle(Paint.Style.STROKE);
|
|
}
|
|
|
|
public float getCenter() {
|
|
return getSize() / 2.0f;
|
|
}
|
|
|
|
public float getCrossOffset() {
|
|
return this.a * 10.0f;
|
|
}
|
|
|
|
public float getInnerCircleOffset() {
|
|
return this.a * 2.0f;
|
|
}
|
|
|
|
public float getInnerCircleRadius() {
|
|
return getCenter() - getInnerCircleOffset();
|
|
}
|
|
|
|
public float getStrokeWidth() {
|
|
return this.a * 3.0f;
|
|
}
|
|
|
|
@Override // com.applovin.impl.adview.e
|
|
public e.a getStyle() {
|
|
return e.a.WHITE_ON_BLACK;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void onDraw(Canvas canvas) {
|
|
super.onDraw(canvas);
|
|
float center = getCenter();
|
|
canvas.drawCircle(center, center, center, c);
|
|
canvas.drawCircle(center, center, getInnerCircleRadius(), d);
|
|
float crossOffset = getCrossOffset();
|
|
float size = getSize() - crossOffset;
|
|
Paint paint = f;
|
|
paint.setStrokeWidth(getStrokeWidth());
|
|
canvas.drawLine(crossOffset, crossOffset, size, size, paint);
|
|
canvas.drawLine(crossOffset, size, size, crossOffset, paint);
|
|
}
|
|
}
|