83 lines
2.6 KiB
Java
83 lines
2.6 KiB
Java
package androidx.constraintlayout.motion.widget;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.constraintlayout.widget.ConstraintHelper;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import o.C3345avm;
|
|
import o.InterfaceC16747qsB;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class MotionHelper extends ConstraintHelper implements InterfaceC16747qsB {
|
|
private float a;
|
|
boolean d;
|
|
boolean e;
|
|
private View[] f;
|
|
|
|
public void setProgress(View view, float f) {
|
|
}
|
|
|
|
public MotionHelper(Context context) {
|
|
super(context);
|
|
this.d = false;
|
|
this.e = false;
|
|
}
|
|
|
|
public MotionHelper(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.d = false;
|
|
this.e = false;
|
|
lt_(attributeSet);
|
|
}
|
|
|
|
public MotionHelper(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
this.d = false;
|
|
this.e = false;
|
|
lt_(attributeSet);
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
|
public final void lt_(AttributeSet attributeSet) {
|
|
super.lt_(attributeSet);
|
|
if (attributeSet != null) {
|
|
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, C3345avm.IeS.MotionHelper);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = obtainStyledAttributes.getIndex(i);
|
|
if (index == C3345avm.IeS.MotionHelper_onShow) {
|
|
this.d = obtainStyledAttributes.getBoolean(index, this.d);
|
|
} else if (index == C3345avm.IeS.MotionHelper_onHide) {
|
|
this.e = obtainStyledAttributes.getBoolean(index, this.e);
|
|
}
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
}
|
|
|
|
public void setProgress(float f) {
|
|
this.a = f;
|
|
int i = 0;
|
|
if (this.c > 0) {
|
|
this.f = e((ConstraintLayout) getParent());
|
|
while (i < this.c) {
|
|
setProgress(this.f[i], f);
|
|
i++;
|
|
}
|
|
return;
|
|
}
|
|
ViewGroup viewGroup = (ViewGroup) getParent();
|
|
int childCount = viewGroup.getChildCount();
|
|
while (i < childCount) {
|
|
View childAt = viewGroup.getChildAt(i);
|
|
if (!(childAt instanceof MotionHelper)) {
|
|
setProgress(childAt, f);
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
}
|