92 lines
3.1 KiB
Java
92 lines
3.1 KiB
Java
package androidx.constraintlayout.widget;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.view.ViewParent;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import o.C3345avm;
|
|
import o.ZXE;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class VirtualLayout extends ConstraintHelper {
|
|
private boolean a;
|
|
private boolean e;
|
|
|
|
public void d(ZXE zxe, int i, int i2) {
|
|
}
|
|
|
|
public VirtualLayout(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public VirtualLayout(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
public VirtualLayout(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
|
public void lt_(AttributeSet attributeSet) {
|
|
super.lt_(attributeSet);
|
|
if (attributeSet != null) {
|
|
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, C3345avm.IeS.ConstraintLayout_Layout);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = obtainStyledAttributes.getIndex(i);
|
|
if (index == C3345avm.IeS.ConstraintLayout_Layout_android_visibility) {
|
|
this.e = true;
|
|
} else if (index == C3345avm.IeS.ConstraintLayout_Layout_android_elevation) {
|
|
this.a = true;
|
|
}
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper, android.view.View
|
|
public void onAttachedToWindow() {
|
|
super.onAttachedToWindow();
|
|
if (this.e || this.a) {
|
|
ViewParent parent = getParent();
|
|
if (parent instanceof ConstraintLayout) {
|
|
ConstraintLayout constraintLayout = (ConstraintLayout) parent;
|
|
int visibility = getVisibility();
|
|
float elevation = getElevation();
|
|
for (int i = 0; i < this.c; i++) {
|
|
View view = constraintLayout.w.get(this.i[i]);
|
|
if (view != null) {
|
|
if (this.e) {
|
|
view.setVisibility(visibility);
|
|
}
|
|
if (this.a && elevation > BitmapDescriptorFactory.HUE_RED) {
|
|
view.setTranslationZ(view.getTranslationZ() + elevation);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
super.setVisibility(i);
|
|
c();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setElevation(float f) {
|
|
super.setElevation(f);
|
|
c();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
|
public final void b(ConstraintLayout constraintLayout) {
|
|
d(constraintLayout);
|
|
}
|
|
}
|