mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
84 lines
2.6 KiB
Java
84 lines
2.6 KiB
Java
package androidx.constraintlayout.widget;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes13.dex */
|
|
public class Guideline extends View {
|
|
private boolean mFilterRedundantCalls;
|
|
|
|
public Guideline(Context context) {
|
|
super(context);
|
|
this.mFilterRedundantCalls = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void onMeasure(int i, int i2) {
|
|
setMeasuredDimension(0, 0);
|
|
}
|
|
|
|
public void setFilterRedundantCalls(boolean z) {
|
|
this.mFilterRedundantCalls = z;
|
|
}
|
|
|
|
public void setGuidelineBegin(int i) {
|
|
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
|
if (this.mFilterRedundantCalls && layoutParams.guideBegin == i) {
|
|
return;
|
|
}
|
|
layoutParams.guideBegin = i;
|
|
setLayoutParams(layoutParams);
|
|
}
|
|
|
|
public void setGuidelineEnd(int i) {
|
|
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
|
if (this.mFilterRedundantCalls && layoutParams.guideEnd == i) {
|
|
return;
|
|
}
|
|
layoutParams.guideEnd = i;
|
|
setLayoutParams(layoutParams);
|
|
}
|
|
|
|
public void setGuidelinePercent(float f) {
|
|
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
|
if (this.mFilterRedundantCalls && layoutParams.guidePercent == f) {
|
|
return;
|
|
}
|
|
layoutParams.guidePercent = f;
|
|
setLayoutParams(layoutParams);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.mFilterRedundantCalls = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
this.mFilterRedundantCalls = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
super(context, attributeSet, i);
|
|
this.mFilterRedundantCalls = true;
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
@SuppressLint({"MissingSuperCall"})
|
|
public void draw(@NonNull Canvas canvas) {
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
}
|
|
}
|