60 lines
1.8 KiB
Java
60 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 {
|
|
public Guideline(Context context) {
|
|
super(context);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
public Guideline(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
super(context, attributeSet, i);
|
|
super.setVisibility(8);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void draw(Canvas canvas) {
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void onMeasure(int i, int i2) {
|
|
setMeasuredDimension(0, 0);
|
|
}
|
|
|
|
public void setGuidelineBegin(int i) {
|
|
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
|
layoutParams.guideBegin = i;
|
|
setLayoutParams(layoutParams);
|
|
}
|
|
|
|
public void setGuidelineEnd(int i) {
|
|
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
|
layoutParams.guideEnd = i;
|
|
setLayoutParams(layoutParams);
|
|
}
|
|
|
|
public void setGuidelinePercent(float f) {
|
|
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
|
layoutParams.guidePercent = f;
|
|
setLayoutParams(layoutParams);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
}
|
|
}
|