mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
91 lines
3.3 KiB
Java
91 lines
3.3 KiB
Java
package com.google.android.material.circularreveal;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.AttributeSet;
|
|
import android.widget.LinearLayout;
|
|
import com.google.android.material.circularreveal.CircularRevealWidget;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class CircularRevealLinearLayout extends LinearLayout implements CircularRevealWidget {
|
|
private final CircularRevealHelper helper;
|
|
|
|
public CircularRevealLinearLayout(Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public CircularRevealLinearLayout(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.helper = new CircularRevealHelper(this);
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public void buildCircularRevealCache() {
|
|
this.helper.buildCircularRevealCache();
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public void destroyCircularRevealCache() {
|
|
this.helper.destroyCircularRevealCache();
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public CircularRevealWidget.RevealInfo getRevealInfo() {
|
|
return this.helper.getRevealInfo();
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public void setRevealInfo(CircularRevealWidget.RevealInfo revealInfo) {
|
|
this.helper.setRevealInfo(revealInfo);
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public int getCircularRevealScrimColor() {
|
|
return this.helper.getCircularRevealScrimColor();
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public void setCircularRevealScrimColor(int i) {
|
|
this.helper.setCircularRevealScrimColor(i);
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public Drawable getCircularRevealOverlayDrawable() {
|
|
return this.helper.getCircularRevealOverlayDrawable();
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
|
public void setCircularRevealOverlayDrawable(Drawable drawable) {
|
|
this.helper.setCircularRevealOverlayDrawable(drawable);
|
|
}
|
|
|
|
@Override // android.view.View, com.google.android.material.circularreveal.CircularRevealWidget
|
|
public void draw(Canvas canvas) {
|
|
CircularRevealHelper circularRevealHelper = this.helper;
|
|
if (circularRevealHelper != null) {
|
|
circularRevealHelper.draw(canvas);
|
|
} else {
|
|
super.draw(canvas);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealHelper.Delegate
|
|
public void actualDraw(Canvas canvas) {
|
|
super.draw(canvas);
|
|
}
|
|
|
|
@Override // android.view.View, com.google.android.material.circularreveal.CircularRevealWidget
|
|
public boolean isOpaque() {
|
|
CircularRevealHelper circularRevealHelper = this.helper;
|
|
if (circularRevealHelper != null) {
|
|
return circularRevealHelper.isOpaque();
|
|
}
|
|
return super.isOpaque();
|
|
}
|
|
|
|
@Override // com.google.android.material.circularreveal.CircularRevealHelper.Delegate
|
|
public boolean actualIsOpaque() {
|
|
return super.isOpaque();
|
|
}
|
|
}
|