75 lines
1.8 KiB
Java
75 lines
1.8 KiB
Java
package androidx.constraintlayout.widget;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class Guideline extends View {
|
|
private boolean d;
|
|
|
|
@Override // android.view.View
|
|
public void draw(Canvas canvas) {
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
}
|
|
|
|
public Guideline(Context context) {
|
|
super(context);
|
|
this.d = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.d = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
this.d = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected void onMeasure(int i, int i2) {
|
|
setMeasuredDimension(0, 0);
|
|
}
|
|
|
|
public void setGuidelineBegin(int i) {
|
|
ConstraintLayout.Sts sts = (ConstraintLayout.Sts) getLayoutParams();
|
|
if (this.d && sts.A == i) {
|
|
return;
|
|
}
|
|
sts.A = i;
|
|
setLayoutParams(sts);
|
|
}
|
|
|
|
public void setGuidelineEnd(int i) {
|
|
ConstraintLayout.Sts sts = (ConstraintLayout.Sts) getLayoutParams();
|
|
if (this.d && sts.D == i) {
|
|
return;
|
|
}
|
|
sts.D = i;
|
|
setLayoutParams(sts);
|
|
}
|
|
|
|
public void setGuidelinePercent(float f) {
|
|
ConstraintLayout.Sts sts = (ConstraintLayout.Sts) getLayoutParams();
|
|
if (this.d && sts.C == f) {
|
|
return;
|
|
}
|
|
sts.C = f;
|
|
setLayoutParams(sts);
|
|
}
|
|
|
|
public void setFilterRedundantCalls(boolean z) {
|
|
this.d = z;
|
|
}
|
|
}
|