Initial commit
This commit is contained in:
76
sources/androidx/constraintlayout/widget/Barrier.java
Normal file
76
sources/androidx/constraintlayout/widget/Barrier.java
Normal file
@@ -0,0 +1,76 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class Barrier extends ConstraintHelper {
|
||||
private int g;
|
||||
private int h;
|
||||
private androidx.constraintlayout.solver.widgets.Barrier i;
|
||||
|
||||
public Barrier(Context context) {
|
||||
super(context);
|
||||
super.setVisibility(8);
|
||||
}
|
||||
|
||||
@Override // androidx.constraintlayout.widget.ConstraintHelper
|
||||
protected void a(AttributeSet attributeSet) {
|
||||
super.a(attributeSet);
|
||||
this.i = new androidx.constraintlayout.solver.widgets.Barrier();
|
||||
if (attributeSet != null) {
|
||||
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, R$styleable.ConstraintLayout_Layout);
|
||||
int indexCount = obtainStyledAttributes.getIndexCount();
|
||||
for (int i = 0; i < indexCount; i++) {
|
||||
int index = obtainStyledAttributes.getIndex(i);
|
||||
if (index == R$styleable.ConstraintLayout_Layout_barrierDirection) {
|
||||
setType(obtainStyledAttributes.getInt(index, 0));
|
||||
} else if (index == R$styleable.ConstraintLayout_Layout_barrierAllowsGoneWidgets) {
|
||||
this.i.c(obtainStyledAttributes.getBoolean(index, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
this.d = this.i;
|
||||
a();
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public void setAllowsGoneWidget(boolean z) {
|
||||
this.i.c(z);
|
||||
}
|
||||
|
||||
public void setType(int i) {
|
||||
this.g = i;
|
||||
this.h = i;
|
||||
if (Build.VERSION.SDK_INT < 17) {
|
||||
int i2 = this.g;
|
||||
if (i2 == 5) {
|
||||
this.h = 0;
|
||||
} else if (i2 == 6) {
|
||||
this.h = 1;
|
||||
}
|
||||
} else {
|
||||
if (1 == getResources().getConfiguration().getLayoutDirection()) {
|
||||
int i3 = this.g;
|
||||
if (i3 == 5) {
|
||||
this.h = 1;
|
||||
} else if (i3 == 6) {
|
||||
this.h = 0;
|
||||
}
|
||||
} else {
|
||||
int i4 = this.g;
|
||||
if (i4 == 5) {
|
||||
this.h = 0;
|
||||
} else if (i4 == 6) {
|
||||
this.h = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.i.t(this.h);
|
||||
}
|
||||
}
|
157
sources/androidx/constraintlayout/widget/ConstraintHelper.java
Normal file
157
sources/androidx/constraintlayout/widget/ConstraintHelper.java
Normal file
@@ -0,0 +1,157 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.constraintlayout.solver.widgets.Helper;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
||||
import java.util.Arrays;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class ConstraintHelper extends View {
|
||||
protected int[] a;
|
||||
protected int b;
|
||||
protected Context c;
|
||||
protected Helper d;
|
||||
protected boolean e;
|
||||
private String f;
|
||||
|
||||
public ConstraintHelper(Context context) {
|
||||
super(context);
|
||||
this.a = new int[32];
|
||||
this.e = false;
|
||||
this.c = context;
|
||||
a((AttributeSet) null);
|
||||
}
|
||||
|
||||
private void setIds(String str) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
int i = 0;
|
||||
while (true) {
|
||||
int indexOf = str.indexOf(44, i);
|
||||
if (indexOf == -1) {
|
||||
a(str.substring(i));
|
||||
return;
|
||||
} else {
|
||||
a(str.substring(i, indexOf));
|
||||
i = indexOf + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void a(AttributeSet attributeSet) {
|
||||
if (attributeSet != null) {
|
||||
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, R$styleable.ConstraintLayout_Layout);
|
||||
int indexCount = obtainStyledAttributes.getIndexCount();
|
||||
for (int i = 0; i < indexCount; i++) {
|
||||
int index = obtainStyledAttributes.getIndex(i);
|
||||
if (index == R$styleable.ConstraintLayout_Layout_constraint_referenced_ids) {
|
||||
this.f = obtainStyledAttributes.getString(index);
|
||||
setIds(this.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void a(ConstraintLayout constraintLayout) {
|
||||
}
|
||||
|
||||
public void b(ConstraintLayout constraintLayout) {
|
||||
}
|
||||
|
||||
public void c(ConstraintLayout constraintLayout) {
|
||||
if (isInEditMode()) {
|
||||
setIds(this.f);
|
||||
}
|
||||
Helper helper = this.d;
|
||||
if (helper == null) {
|
||||
return;
|
||||
}
|
||||
helper.J();
|
||||
for (int i = 0; i < this.b; i++) {
|
||||
View a = constraintLayout.a(this.a[i]);
|
||||
if (a != null) {
|
||||
this.d.b(constraintLayout.a(a));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int[] getReferencedIds() {
|
||||
return Arrays.copyOf(this.a, this.b);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void onDraw(Canvas canvas) {
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
if (this.e) {
|
||||
super.onMeasure(i, i2);
|
||||
} else {
|
||||
setMeasuredDimension(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public void setReferencedIds(int[] iArr) {
|
||||
this.b = 0;
|
||||
for (int i : iArr) {
|
||||
setTag(i, null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setTag(int i, Object obj) {
|
||||
int i2 = this.b + 1;
|
||||
int[] iArr = this.a;
|
||||
if (i2 > iArr.length) {
|
||||
this.a = Arrays.copyOf(iArr, iArr.length * 2);
|
||||
}
|
||||
int[] iArr2 = this.a;
|
||||
int i3 = this.b;
|
||||
iArr2[i3] = i;
|
||||
this.b = i3 + 1;
|
||||
}
|
||||
|
||||
public void a() {
|
||||
if (this.d == null) {
|
||||
return;
|
||||
}
|
||||
ViewGroup.LayoutParams layoutParams = getLayoutParams();
|
||||
if (layoutParams instanceof ConstraintLayout.LayoutParams) {
|
||||
((ConstraintLayout.LayoutParams) layoutParams).k0 = this.d;
|
||||
}
|
||||
}
|
||||
|
||||
private void a(String str) {
|
||||
int i;
|
||||
Object a;
|
||||
if (str == null || this.c == null) {
|
||||
return;
|
||||
}
|
||||
String trim = str.trim();
|
||||
try {
|
||||
i = R$id.class.getField(trim).getInt(null);
|
||||
} catch (Exception unused) {
|
||||
i = 0;
|
||||
}
|
||||
if (i == 0) {
|
||||
i = this.c.getResources().getIdentifier(trim, JockstickDataConverter.ID, this.c.getPackageName());
|
||||
}
|
||||
if (i == 0 && isInEditMode() && (getParent() instanceof ConstraintLayout) && (a = ((ConstraintLayout) getParent()).a(0, trim)) != null && (a instanceof Integer)) {
|
||||
i = ((Integer) a).intValue();
|
||||
}
|
||||
if (i != 0) {
|
||||
setTag(i, null);
|
||||
return;
|
||||
}
|
||||
Log.w("ConstraintHelper", "Could not find id of \"" + trim + "\"");
|
||||
}
|
||||
}
|
1344
sources/androidx/constraintlayout/widget/ConstraintLayout.java
Normal file
1344
sources/androidx/constraintlayout/widget/ConstraintLayout.java
Normal file
File diff suppressed because it is too large
Load Diff
871
sources/androidx/constraintlayout/widget/ConstraintSet.java
Normal file
871
sources/androidx/constraintlayout/widget/ConstraintSet.java
Normal file
@@ -0,0 +1,871 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.content.res.XmlResourceParser;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.SparseIntArray;
|
||||
import android.util.Xml;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.constraintlayout.widget.Constraints;
|
||||
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ConstraintSet {
|
||||
private static final int[] b = {0, 4, 8};
|
||||
private static SparseIntArray c = new SparseIntArray();
|
||||
private HashMap<Integer, Constraint> a = new HashMap<>();
|
||||
|
||||
private static class Constraint {
|
||||
public int A;
|
||||
public int B;
|
||||
public int C;
|
||||
public int D;
|
||||
public int E;
|
||||
public int F;
|
||||
public int G;
|
||||
public int H;
|
||||
public int I;
|
||||
public int J;
|
||||
public int K;
|
||||
public int L;
|
||||
public int M;
|
||||
public int N;
|
||||
public int O;
|
||||
public int P;
|
||||
public float Q;
|
||||
public float R;
|
||||
public int S;
|
||||
public int T;
|
||||
public float U;
|
||||
public boolean V;
|
||||
public float W;
|
||||
public float X;
|
||||
public float Y;
|
||||
public float Z;
|
||||
boolean a;
|
||||
public float a0;
|
||||
public int b;
|
||||
public float b0;
|
||||
public int c;
|
||||
public float c0;
|
||||
int d;
|
||||
public float d0;
|
||||
public int e;
|
||||
public float e0;
|
||||
public int f;
|
||||
public float f0;
|
||||
public float g;
|
||||
public float g0;
|
||||
public int h;
|
||||
public boolean h0;
|
||||
public int i;
|
||||
public boolean i0;
|
||||
public int j;
|
||||
public int j0;
|
||||
public int k;
|
||||
public int k0;
|
||||
public int l;
|
||||
public int l0;
|
||||
public int m;
|
||||
public int m0;
|
||||
public int n;
|
||||
public int n0;
|
||||
public int o;
|
||||
public int o0;
|
||||
public int p;
|
||||
public float p0;
|
||||
public int q;
|
||||
public float q0;
|
||||
public int r;
|
||||
public boolean r0;
|
||||
public int s;
|
||||
public int s0;
|
||||
public int t;
|
||||
public int t0;
|
||||
public float u;
|
||||
public int[] u0;
|
||||
public float v;
|
||||
public String v0;
|
||||
public String w;
|
||||
public int x;
|
||||
public int y;
|
||||
public float z;
|
||||
|
||||
private Constraint() {
|
||||
this.a = false;
|
||||
this.e = -1;
|
||||
this.f = -1;
|
||||
this.g = -1.0f;
|
||||
this.h = -1;
|
||||
this.i = -1;
|
||||
this.j = -1;
|
||||
this.k = -1;
|
||||
this.l = -1;
|
||||
this.m = -1;
|
||||
this.n = -1;
|
||||
this.o = -1;
|
||||
this.p = -1;
|
||||
this.q = -1;
|
||||
this.r = -1;
|
||||
this.s = -1;
|
||||
this.t = -1;
|
||||
this.u = 0.5f;
|
||||
this.v = 0.5f;
|
||||
this.w = null;
|
||||
this.x = -1;
|
||||
this.y = 0;
|
||||
this.z = 0.0f;
|
||||
this.A = -1;
|
||||
this.B = -1;
|
||||
this.C = -1;
|
||||
this.D = -1;
|
||||
this.E = -1;
|
||||
this.F = -1;
|
||||
this.G = -1;
|
||||
this.H = -1;
|
||||
this.I = -1;
|
||||
this.J = 0;
|
||||
this.K = -1;
|
||||
this.L = -1;
|
||||
this.M = -1;
|
||||
this.N = -1;
|
||||
this.O = -1;
|
||||
this.P = -1;
|
||||
this.Q = 0.0f;
|
||||
this.R = 0.0f;
|
||||
this.S = 0;
|
||||
this.T = 0;
|
||||
this.U = 1.0f;
|
||||
this.V = false;
|
||||
this.W = 0.0f;
|
||||
this.X = 0.0f;
|
||||
this.Y = 0.0f;
|
||||
this.Z = 0.0f;
|
||||
this.a0 = 1.0f;
|
||||
this.b0 = 1.0f;
|
||||
this.c0 = Float.NaN;
|
||||
this.d0 = Float.NaN;
|
||||
this.e0 = 0.0f;
|
||||
this.f0 = 0.0f;
|
||||
this.g0 = 0.0f;
|
||||
this.h0 = false;
|
||||
this.i0 = false;
|
||||
this.j0 = 0;
|
||||
this.k0 = 0;
|
||||
this.l0 = -1;
|
||||
this.m0 = -1;
|
||||
this.n0 = -1;
|
||||
this.o0 = -1;
|
||||
this.p0 = 1.0f;
|
||||
this.q0 = 1.0f;
|
||||
this.r0 = false;
|
||||
this.s0 = -1;
|
||||
this.t0 = -1;
|
||||
}
|
||||
|
||||
/* renamed from: clone, reason: merged with bridge method [inline-methods] */
|
||||
public Constraint m2clone() {
|
||||
Constraint constraint = new Constraint();
|
||||
constraint.a = this.a;
|
||||
constraint.b = this.b;
|
||||
constraint.c = this.c;
|
||||
constraint.e = this.e;
|
||||
constraint.f = this.f;
|
||||
constraint.g = this.g;
|
||||
constraint.h = this.h;
|
||||
constraint.i = this.i;
|
||||
constraint.j = this.j;
|
||||
constraint.k = this.k;
|
||||
constraint.l = this.l;
|
||||
constraint.m = this.m;
|
||||
constraint.n = this.n;
|
||||
constraint.o = this.o;
|
||||
constraint.p = this.p;
|
||||
constraint.q = this.q;
|
||||
constraint.r = this.r;
|
||||
constraint.s = this.s;
|
||||
constraint.t = this.t;
|
||||
constraint.u = this.u;
|
||||
constraint.v = this.v;
|
||||
constraint.w = this.w;
|
||||
constraint.A = this.A;
|
||||
constraint.B = this.B;
|
||||
constraint.u = this.u;
|
||||
constraint.u = this.u;
|
||||
constraint.u = this.u;
|
||||
constraint.u = this.u;
|
||||
constraint.u = this.u;
|
||||
constraint.C = this.C;
|
||||
constraint.D = this.D;
|
||||
constraint.E = this.E;
|
||||
constraint.F = this.F;
|
||||
constraint.G = this.G;
|
||||
constraint.H = this.H;
|
||||
constraint.I = this.I;
|
||||
constraint.J = this.J;
|
||||
constraint.K = this.K;
|
||||
constraint.L = this.L;
|
||||
constraint.M = this.M;
|
||||
constraint.N = this.N;
|
||||
constraint.O = this.O;
|
||||
constraint.P = this.P;
|
||||
constraint.Q = this.Q;
|
||||
constraint.R = this.R;
|
||||
constraint.S = this.S;
|
||||
constraint.T = this.T;
|
||||
constraint.U = this.U;
|
||||
constraint.V = this.V;
|
||||
constraint.W = this.W;
|
||||
constraint.X = this.X;
|
||||
constraint.Y = this.Y;
|
||||
constraint.Z = this.Z;
|
||||
constraint.a0 = this.a0;
|
||||
constraint.b0 = this.b0;
|
||||
constraint.c0 = this.c0;
|
||||
constraint.d0 = this.d0;
|
||||
constraint.e0 = this.e0;
|
||||
constraint.f0 = this.f0;
|
||||
constraint.g0 = this.g0;
|
||||
constraint.h0 = this.h0;
|
||||
constraint.i0 = this.i0;
|
||||
constraint.j0 = this.j0;
|
||||
constraint.k0 = this.k0;
|
||||
constraint.l0 = this.l0;
|
||||
constraint.m0 = this.m0;
|
||||
constraint.n0 = this.n0;
|
||||
constraint.o0 = this.o0;
|
||||
constraint.p0 = this.p0;
|
||||
constraint.q0 = this.q0;
|
||||
constraint.s0 = this.s0;
|
||||
constraint.t0 = this.t0;
|
||||
int[] iArr = this.u0;
|
||||
if (iArr != null) {
|
||||
constraint.u0 = Arrays.copyOf(iArr, iArr.length);
|
||||
}
|
||||
constraint.x = this.x;
|
||||
constraint.y = this.y;
|
||||
constraint.z = this.z;
|
||||
constraint.r0 = this.r0;
|
||||
return constraint;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public void a(ConstraintHelper constraintHelper, int i, Constraints.LayoutParams layoutParams) {
|
||||
a(i, layoutParams);
|
||||
if (constraintHelper instanceof Barrier) {
|
||||
this.t0 = 1;
|
||||
Barrier barrier = (Barrier) constraintHelper;
|
||||
this.s0 = barrier.getType();
|
||||
this.u0 = barrier.getReferencedIds();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public void a(int i, Constraints.LayoutParams layoutParams) {
|
||||
a(i, (ConstraintLayout.LayoutParams) layoutParams);
|
||||
this.U = layoutParams.m0;
|
||||
this.X = layoutParams.p0;
|
||||
this.Y = layoutParams.q0;
|
||||
this.Z = layoutParams.r0;
|
||||
this.a0 = layoutParams.s0;
|
||||
this.b0 = layoutParams.t0;
|
||||
this.c0 = layoutParams.u0;
|
||||
this.d0 = layoutParams.v0;
|
||||
this.e0 = layoutParams.w0;
|
||||
this.f0 = layoutParams.x0;
|
||||
this.g0 = layoutParams.y0;
|
||||
this.W = layoutParams.o0;
|
||||
this.V = layoutParams.n0;
|
||||
}
|
||||
|
||||
private void a(int i, ConstraintLayout.LayoutParams layoutParams) {
|
||||
this.d = i;
|
||||
this.h = layoutParams.d;
|
||||
this.i = layoutParams.e;
|
||||
this.j = layoutParams.f;
|
||||
this.k = layoutParams.g;
|
||||
this.l = layoutParams.h;
|
||||
this.m = layoutParams.i;
|
||||
this.n = layoutParams.j;
|
||||
this.o = layoutParams.k;
|
||||
this.p = layoutParams.l;
|
||||
this.q = layoutParams.p;
|
||||
this.r = layoutParams.q;
|
||||
this.s = layoutParams.r;
|
||||
this.t = layoutParams.s;
|
||||
this.u = layoutParams.z;
|
||||
this.v = layoutParams.A;
|
||||
this.w = layoutParams.B;
|
||||
this.x = layoutParams.m;
|
||||
this.y = layoutParams.n;
|
||||
this.z = layoutParams.o;
|
||||
this.A = layoutParams.P;
|
||||
this.B = layoutParams.Q;
|
||||
this.C = layoutParams.R;
|
||||
this.g = layoutParams.c;
|
||||
this.e = layoutParams.a;
|
||||
this.f = layoutParams.b;
|
||||
this.b = ((ViewGroup.MarginLayoutParams) layoutParams).width;
|
||||
this.c = ((ViewGroup.MarginLayoutParams) layoutParams).height;
|
||||
this.D = ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin;
|
||||
this.E = ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin;
|
||||
this.F = ((ViewGroup.MarginLayoutParams) layoutParams).topMargin;
|
||||
this.G = ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin;
|
||||
this.Q = layoutParams.E;
|
||||
this.R = layoutParams.D;
|
||||
this.T = layoutParams.G;
|
||||
this.S = layoutParams.F;
|
||||
boolean z = layoutParams.S;
|
||||
this.h0 = z;
|
||||
this.i0 = layoutParams.T;
|
||||
this.j0 = layoutParams.H;
|
||||
this.k0 = layoutParams.I;
|
||||
this.h0 = z;
|
||||
this.l0 = layoutParams.L;
|
||||
this.m0 = layoutParams.M;
|
||||
this.n0 = layoutParams.J;
|
||||
this.o0 = layoutParams.K;
|
||||
this.p0 = layoutParams.N;
|
||||
this.q0 = layoutParams.O;
|
||||
if (Build.VERSION.SDK_INT >= 17) {
|
||||
this.H = layoutParams.getMarginEnd();
|
||||
this.I = layoutParams.getMarginStart();
|
||||
}
|
||||
}
|
||||
|
||||
public void a(ConstraintLayout.LayoutParams layoutParams) {
|
||||
layoutParams.d = this.h;
|
||||
layoutParams.e = this.i;
|
||||
layoutParams.f = this.j;
|
||||
layoutParams.g = this.k;
|
||||
layoutParams.h = this.l;
|
||||
layoutParams.i = this.m;
|
||||
layoutParams.j = this.n;
|
||||
layoutParams.k = this.o;
|
||||
layoutParams.l = this.p;
|
||||
layoutParams.p = this.q;
|
||||
layoutParams.q = this.r;
|
||||
layoutParams.r = this.s;
|
||||
layoutParams.s = this.t;
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).leftMargin = this.D;
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).rightMargin = this.E;
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).topMargin = this.F;
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin = this.G;
|
||||
layoutParams.x = this.P;
|
||||
layoutParams.y = this.O;
|
||||
layoutParams.z = this.u;
|
||||
layoutParams.A = this.v;
|
||||
layoutParams.m = this.x;
|
||||
layoutParams.n = this.y;
|
||||
layoutParams.o = this.z;
|
||||
layoutParams.B = this.w;
|
||||
layoutParams.P = this.A;
|
||||
layoutParams.Q = this.B;
|
||||
layoutParams.E = this.Q;
|
||||
layoutParams.D = this.R;
|
||||
layoutParams.G = this.T;
|
||||
layoutParams.F = this.S;
|
||||
layoutParams.S = this.h0;
|
||||
layoutParams.T = this.i0;
|
||||
layoutParams.H = this.j0;
|
||||
layoutParams.I = this.k0;
|
||||
layoutParams.L = this.l0;
|
||||
layoutParams.M = this.m0;
|
||||
layoutParams.J = this.n0;
|
||||
layoutParams.K = this.o0;
|
||||
layoutParams.N = this.p0;
|
||||
layoutParams.O = this.q0;
|
||||
layoutParams.R = this.C;
|
||||
layoutParams.c = this.g;
|
||||
layoutParams.a = this.e;
|
||||
layoutParams.b = this.f;
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).width = this.b;
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).height = this.c;
|
||||
if (Build.VERSION.SDK_INT >= 17) {
|
||||
layoutParams.setMarginStart(this.I);
|
||||
layoutParams.setMarginEnd(this.H);
|
||||
}
|
||||
layoutParams.a();
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintLeft_toLeftOf, 25);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintLeft_toRightOf, 26);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintRight_toLeftOf, 29);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintRight_toRightOf, 30);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintTop_toTopOf, 36);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintTop_toBottomOf, 35);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintBottom_toTopOf, 4);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintBottom_toBottomOf, 3);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintBaseline_toBaselineOf, 1);
|
||||
c.append(R$styleable.ConstraintSet_layout_editor_absoluteX, 6);
|
||||
c.append(R$styleable.ConstraintSet_layout_editor_absoluteY, 7);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintGuide_begin, 17);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintGuide_end, 18);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintGuide_percent, 19);
|
||||
c.append(R$styleable.ConstraintSet_android_orientation, 27);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintStart_toEndOf, 32);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintStart_toStartOf, 33);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintEnd_toStartOf, 10);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintEnd_toEndOf, 9);
|
||||
c.append(R$styleable.ConstraintSet_layout_goneMarginLeft, 13);
|
||||
c.append(R$styleable.ConstraintSet_layout_goneMarginTop, 16);
|
||||
c.append(R$styleable.ConstraintSet_layout_goneMarginRight, 14);
|
||||
c.append(R$styleable.ConstraintSet_layout_goneMarginBottom, 11);
|
||||
c.append(R$styleable.ConstraintSet_layout_goneMarginStart, 15);
|
||||
c.append(R$styleable.ConstraintSet_layout_goneMarginEnd, 12);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintVertical_weight, 40);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHorizontal_weight, 39);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHorizontal_chainStyle, 41);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintVertical_chainStyle, 42);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHorizontal_bias, 20);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintVertical_bias, 37);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintDimensionRatio, 5);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintLeft_creator, 75);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintTop_creator, 75);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintRight_creator, 75);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintBottom_creator, 75);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintBaseline_creator, 75);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_marginLeft, 24);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_marginRight, 28);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_marginStart, 31);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_marginEnd, 8);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_marginTop, 34);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_marginBottom, 2);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_width, 23);
|
||||
c.append(R$styleable.ConstraintSet_android_layout_height, 21);
|
||||
c.append(R$styleable.ConstraintSet_android_visibility, 22);
|
||||
c.append(R$styleable.ConstraintSet_android_alpha, 43);
|
||||
c.append(R$styleable.ConstraintSet_android_elevation, 44);
|
||||
c.append(R$styleable.ConstraintSet_android_rotationX, 45);
|
||||
c.append(R$styleable.ConstraintSet_android_rotationY, 46);
|
||||
c.append(R$styleable.ConstraintSet_android_rotation, 60);
|
||||
c.append(R$styleable.ConstraintSet_android_scaleX, 47);
|
||||
c.append(R$styleable.ConstraintSet_android_scaleY, 48);
|
||||
c.append(R$styleable.ConstraintSet_android_transformPivotX, 49);
|
||||
c.append(R$styleable.ConstraintSet_android_transformPivotY, 50);
|
||||
c.append(R$styleable.ConstraintSet_android_translationX, 51);
|
||||
c.append(R$styleable.ConstraintSet_android_translationY, 52);
|
||||
c.append(R$styleable.ConstraintSet_android_translationZ, 53);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintWidth_default, 54);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHeight_default, 55);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintWidth_max, 56);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHeight_max, 57);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintWidth_min, 58);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHeight_min, 59);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintCircle, 61);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintCircleRadius, 62);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintCircleAngle, 63);
|
||||
c.append(R$styleable.ConstraintSet_android_id, 38);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintWidth_percent, 69);
|
||||
c.append(R$styleable.ConstraintSet_layout_constraintHeight_percent, 70);
|
||||
c.append(R$styleable.ConstraintSet_chainUseRtl, 71);
|
||||
c.append(R$styleable.ConstraintSet_barrierDirection, 72);
|
||||
c.append(R$styleable.ConstraintSet_constraint_referenced_ids, 73);
|
||||
c.append(R$styleable.ConstraintSet_barrierAllowsGoneWidgets, 74);
|
||||
}
|
||||
|
||||
public void a(Constraints constraints) {
|
||||
int childCount = constraints.getChildCount();
|
||||
this.a.clear();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
View childAt = constraints.getChildAt(i);
|
||||
Constraints.LayoutParams layoutParams = (Constraints.LayoutParams) childAt.getLayoutParams();
|
||||
int id = childAt.getId();
|
||||
if (id == -1) {
|
||||
throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
|
||||
}
|
||||
if (!this.a.containsKey(Integer.valueOf(id))) {
|
||||
this.a.put(Integer.valueOf(id), new Constraint());
|
||||
}
|
||||
Constraint constraint = this.a.get(Integer.valueOf(id));
|
||||
if (childAt instanceof ConstraintHelper) {
|
||||
constraint.a((ConstraintHelper) childAt, id, layoutParams);
|
||||
}
|
||||
constraint.a(id, layoutParams);
|
||||
}
|
||||
}
|
||||
|
||||
void a(ConstraintLayout constraintLayout) {
|
||||
int childCount = constraintLayout.getChildCount();
|
||||
HashSet hashSet = new HashSet(this.a.keySet());
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
View childAt = constraintLayout.getChildAt(i);
|
||||
int id = childAt.getId();
|
||||
if (id != -1) {
|
||||
if (this.a.containsKey(Integer.valueOf(id))) {
|
||||
hashSet.remove(Integer.valueOf(id));
|
||||
Constraint constraint = this.a.get(Integer.valueOf(id));
|
||||
if (childAt instanceof Barrier) {
|
||||
constraint.t0 = 1;
|
||||
}
|
||||
int i2 = constraint.t0;
|
||||
if (i2 != -1 && i2 == 1) {
|
||||
Barrier barrier = (Barrier) childAt;
|
||||
barrier.setId(id);
|
||||
barrier.setType(constraint.s0);
|
||||
barrier.setAllowsGoneWidget(constraint.r0);
|
||||
int[] iArr = constraint.u0;
|
||||
if (iArr != null) {
|
||||
barrier.setReferencedIds(iArr);
|
||||
} else {
|
||||
String str = constraint.v0;
|
||||
if (str != null) {
|
||||
constraint.u0 = a(barrier, str);
|
||||
barrier.setReferencedIds(constraint.u0);
|
||||
}
|
||||
}
|
||||
}
|
||||
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) childAt.getLayoutParams();
|
||||
constraint.a(layoutParams);
|
||||
childAt.setLayoutParams(layoutParams);
|
||||
childAt.setVisibility(constraint.J);
|
||||
if (Build.VERSION.SDK_INT >= 17) {
|
||||
childAt.setAlpha(constraint.U);
|
||||
childAt.setRotation(constraint.X);
|
||||
childAt.setRotationX(constraint.Y);
|
||||
childAt.setRotationY(constraint.Z);
|
||||
childAt.setScaleX(constraint.a0);
|
||||
childAt.setScaleY(constraint.b0);
|
||||
if (!Float.isNaN(constraint.c0)) {
|
||||
childAt.setPivotX(constraint.c0);
|
||||
}
|
||||
if (!Float.isNaN(constraint.d0)) {
|
||||
childAt.setPivotY(constraint.d0);
|
||||
}
|
||||
childAt.setTranslationX(constraint.e0);
|
||||
childAt.setTranslationY(constraint.f0);
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
childAt.setTranslationZ(constraint.g0);
|
||||
if (constraint.V) {
|
||||
childAt.setElevation(constraint.W);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
|
||||
}
|
||||
}
|
||||
Iterator it = hashSet.iterator();
|
||||
while (it.hasNext()) {
|
||||
Integer num = (Integer) it.next();
|
||||
Constraint constraint2 = this.a.get(num);
|
||||
int i3 = constraint2.t0;
|
||||
if (i3 != -1 && i3 == 1) {
|
||||
Barrier barrier2 = new Barrier(constraintLayout.getContext());
|
||||
barrier2.setId(num.intValue());
|
||||
int[] iArr2 = constraint2.u0;
|
||||
if (iArr2 != null) {
|
||||
barrier2.setReferencedIds(iArr2);
|
||||
} else {
|
||||
String str2 = constraint2.v0;
|
||||
if (str2 != null) {
|
||||
constraint2.u0 = a(barrier2, str2);
|
||||
barrier2.setReferencedIds(constraint2.u0);
|
||||
}
|
||||
}
|
||||
barrier2.setType(constraint2.s0);
|
||||
ConstraintLayout.LayoutParams generateDefaultLayoutParams = constraintLayout.generateDefaultLayoutParams();
|
||||
barrier2.a();
|
||||
constraint2.a(generateDefaultLayoutParams);
|
||||
constraintLayout.addView(barrier2, generateDefaultLayoutParams);
|
||||
}
|
||||
if (constraint2.a) {
|
||||
View guideline = new Guideline(constraintLayout.getContext());
|
||||
guideline.setId(num.intValue());
|
||||
ConstraintLayout.LayoutParams generateDefaultLayoutParams2 = constraintLayout.generateDefaultLayoutParams();
|
||||
constraint2.a(generateDefaultLayoutParams2);
|
||||
constraintLayout.addView(guideline, generateDefaultLayoutParams2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void a(Context context, int i) {
|
||||
XmlResourceParser xml = context.getResources().getXml(i);
|
||||
try {
|
||||
for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
|
||||
if (eventType == 0) {
|
||||
xml.getName();
|
||||
} else if (eventType == 2) {
|
||||
String name = xml.getName();
|
||||
Constraint a = a(context, Xml.asAttributeSet(xml));
|
||||
if (name.equalsIgnoreCase("Guideline")) {
|
||||
a.a = true;
|
||||
}
|
||||
this.a.put(Integer.valueOf(a.d), a);
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (XmlPullParserException e2) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static int a(TypedArray typedArray, int i, int i2) {
|
||||
int resourceId = typedArray.getResourceId(i, i2);
|
||||
return resourceId == -1 ? typedArray.getInt(i, -1) : resourceId;
|
||||
}
|
||||
|
||||
private Constraint a(Context context, AttributeSet attributeSet) {
|
||||
Constraint constraint = new Constraint();
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.ConstraintSet);
|
||||
a(constraint, obtainStyledAttributes);
|
||||
obtainStyledAttributes.recycle();
|
||||
return constraint;
|
||||
}
|
||||
|
||||
private void a(Constraint constraint, TypedArray typedArray) {
|
||||
int indexCount = typedArray.getIndexCount();
|
||||
for (int i = 0; i < indexCount; i++) {
|
||||
int index = typedArray.getIndex(i);
|
||||
int i2 = c.get(index);
|
||||
switch (i2) {
|
||||
case 1:
|
||||
constraint.p = a(typedArray, index, constraint.p);
|
||||
break;
|
||||
case 2:
|
||||
constraint.G = typedArray.getDimensionPixelSize(index, constraint.G);
|
||||
break;
|
||||
case 3:
|
||||
constraint.o = a(typedArray, index, constraint.o);
|
||||
break;
|
||||
case 4:
|
||||
constraint.n = a(typedArray, index, constraint.n);
|
||||
break;
|
||||
case 5:
|
||||
constraint.w = typedArray.getString(index);
|
||||
break;
|
||||
case 6:
|
||||
constraint.A = typedArray.getDimensionPixelOffset(index, constraint.A);
|
||||
break;
|
||||
case 7:
|
||||
constraint.B = typedArray.getDimensionPixelOffset(index, constraint.B);
|
||||
break;
|
||||
case 8:
|
||||
constraint.H = typedArray.getDimensionPixelSize(index, constraint.H);
|
||||
break;
|
||||
case 9:
|
||||
constraint.t = a(typedArray, index, constraint.t);
|
||||
break;
|
||||
case 10:
|
||||
constraint.s = a(typedArray, index, constraint.s);
|
||||
break;
|
||||
case 11:
|
||||
constraint.N = typedArray.getDimensionPixelSize(index, constraint.N);
|
||||
break;
|
||||
case 12:
|
||||
constraint.O = typedArray.getDimensionPixelSize(index, constraint.O);
|
||||
break;
|
||||
case 13:
|
||||
constraint.K = typedArray.getDimensionPixelSize(index, constraint.K);
|
||||
break;
|
||||
case 14:
|
||||
constraint.M = typedArray.getDimensionPixelSize(index, constraint.M);
|
||||
break;
|
||||
case 15:
|
||||
constraint.P = typedArray.getDimensionPixelSize(index, constraint.P);
|
||||
break;
|
||||
case 16:
|
||||
constraint.L = typedArray.getDimensionPixelSize(index, constraint.L);
|
||||
break;
|
||||
case 17:
|
||||
constraint.e = typedArray.getDimensionPixelOffset(index, constraint.e);
|
||||
break;
|
||||
case 18:
|
||||
constraint.f = typedArray.getDimensionPixelOffset(index, constraint.f);
|
||||
break;
|
||||
case 19:
|
||||
constraint.g = typedArray.getFloat(index, constraint.g);
|
||||
break;
|
||||
case 20:
|
||||
constraint.u = typedArray.getFloat(index, constraint.u);
|
||||
break;
|
||||
case 21:
|
||||
constraint.c = typedArray.getLayoutDimension(index, constraint.c);
|
||||
break;
|
||||
case 22:
|
||||
constraint.J = typedArray.getInt(index, constraint.J);
|
||||
constraint.J = b[constraint.J];
|
||||
break;
|
||||
case 23:
|
||||
constraint.b = typedArray.getLayoutDimension(index, constraint.b);
|
||||
break;
|
||||
case 24:
|
||||
constraint.D = typedArray.getDimensionPixelSize(index, constraint.D);
|
||||
break;
|
||||
case 25:
|
||||
constraint.h = a(typedArray, index, constraint.h);
|
||||
break;
|
||||
case 26:
|
||||
constraint.i = a(typedArray, index, constraint.i);
|
||||
break;
|
||||
case 27:
|
||||
constraint.C = typedArray.getInt(index, constraint.C);
|
||||
break;
|
||||
case 28:
|
||||
constraint.E = typedArray.getDimensionPixelSize(index, constraint.E);
|
||||
break;
|
||||
case 29:
|
||||
constraint.j = a(typedArray, index, constraint.j);
|
||||
break;
|
||||
case 30:
|
||||
constraint.k = a(typedArray, index, constraint.k);
|
||||
break;
|
||||
case 31:
|
||||
constraint.I = typedArray.getDimensionPixelSize(index, constraint.I);
|
||||
break;
|
||||
case 32:
|
||||
constraint.q = a(typedArray, index, constraint.q);
|
||||
break;
|
||||
case 33:
|
||||
constraint.r = a(typedArray, index, constraint.r);
|
||||
break;
|
||||
case 34:
|
||||
constraint.F = typedArray.getDimensionPixelSize(index, constraint.F);
|
||||
break;
|
||||
case 35:
|
||||
constraint.m = a(typedArray, index, constraint.m);
|
||||
break;
|
||||
case 36:
|
||||
constraint.l = a(typedArray, index, constraint.l);
|
||||
break;
|
||||
case 37:
|
||||
constraint.v = typedArray.getFloat(index, constraint.v);
|
||||
break;
|
||||
case 38:
|
||||
constraint.d = typedArray.getResourceId(index, constraint.d);
|
||||
break;
|
||||
case 39:
|
||||
constraint.R = typedArray.getFloat(index, constraint.R);
|
||||
break;
|
||||
case 40:
|
||||
constraint.Q = typedArray.getFloat(index, constraint.Q);
|
||||
break;
|
||||
case 41:
|
||||
constraint.S = typedArray.getInt(index, constraint.S);
|
||||
break;
|
||||
case 42:
|
||||
constraint.T = typedArray.getInt(index, constraint.T);
|
||||
break;
|
||||
case 43:
|
||||
constraint.U = typedArray.getFloat(index, constraint.U);
|
||||
break;
|
||||
case 44:
|
||||
constraint.V = true;
|
||||
constraint.W = typedArray.getDimension(index, constraint.W);
|
||||
break;
|
||||
case 45:
|
||||
constraint.Y = typedArray.getFloat(index, constraint.Y);
|
||||
break;
|
||||
case 46:
|
||||
constraint.Z = typedArray.getFloat(index, constraint.Z);
|
||||
break;
|
||||
case 47:
|
||||
constraint.a0 = typedArray.getFloat(index, constraint.a0);
|
||||
break;
|
||||
case 48:
|
||||
constraint.b0 = typedArray.getFloat(index, constraint.b0);
|
||||
break;
|
||||
case 49:
|
||||
constraint.c0 = typedArray.getFloat(index, constraint.c0);
|
||||
break;
|
||||
case 50:
|
||||
constraint.d0 = typedArray.getFloat(index, constraint.d0);
|
||||
break;
|
||||
case 51:
|
||||
constraint.e0 = typedArray.getDimension(index, constraint.e0);
|
||||
break;
|
||||
case 52:
|
||||
constraint.f0 = typedArray.getDimension(index, constraint.f0);
|
||||
break;
|
||||
case 53:
|
||||
constraint.g0 = typedArray.getDimension(index, constraint.g0);
|
||||
break;
|
||||
default:
|
||||
switch (i2) {
|
||||
case 60:
|
||||
constraint.X = typedArray.getFloat(index, constraint.X);
|
||||
break;
|
||||
case 61:
|
||||
constraint.x = a(typedArray, index, constraint.x);
|
||||
break;
|
||||
case 62:
|
||||
constraint.y = typedArray.getDimensionPixelSize(index, constraint.y);
|
||||
break;
|
||||
case 63:
|
||||
constraint.z = typedArray.getFloat(index, constraint.z);
|
||||
break;
|
||||
default:
|
||||
switch (i2) {
|
||||
case 69:
|
||||
constraint.p0 = typedArray.getFloat(index, 1.0f);
|
||||
break;
|
||||
case 70:
|
||||
constraint.q0 = typedArray.getFloat(index, 1.0f);
|
||||
break;
|
||||
case 71:
|
||||
Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
|
||||
break;
|
||||
case 72:
|
||||
constraint.s0 = typedArray.getInt(index, constraint.s0);
|
||||
break;
|
||||
case 73:
|
||||
constraint.v0 = typedArray.getString(index);
|
||||
break;
|
||||
case 74:
|
||||
constraint.r0 = typedArray.getBoolean(index, constraint.r0);
|
||||
break;
|
||||
case 75:
|
||||
Log.w("ConstraintSet", "unused attribute 0x" + Integer.toHexString(index) + " " + c.get(index));
|
||||
break;
|
||||
default:
|
||||
Log.w("ConstraintSet", "Unknown attribute 0x" + Integer.toHexString(index) + " " + c.get(index));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private int[] a(View view, String str) {
|
||||
int i;
|
||||
Object a;
|
||||
String[] split = str.split(",");
|
||||
Context context = view.getContext();
|
||||
int[] iArr = new int[split.length];
|
||||
int i2 = 0;
|
||||
int i3 = 0;
|
||||
while (i2 < split.length) {
|
||||
String trim = split[i2].trim();
|
||||
try {
|
||||
i = R$id.class.getField(trim).getInt(null);
|
||||
} catch (Exception unused) {
|
||||
i = 0;
|
||||
}
|
||||
if (i == 0) {
|
||||
i = context.getResources().getIdentifier(trim, JockstickDataConverter.ID, context.getPackageName());
|
||||
}
|
||||
if (i == 0 && view.isInEditMode() && (view.getParent() instanceof ConstraintLayout) && (a = ((ConstraintLayout) view.getParent()).a(0, trim)) != null && (a instanceof Integer)) {
|
||||
i = ((Integer) a).intValue();
|
||||
}
|
||||
iArr[i3] = i;
|
||||
i2++;
|
||||
i3++;
|
||||
}
|
||||
return i3 != split.length ? Arrays.copyOf(iArr, i3) : iArr;
|
||||
}
|
||||
}
|
121
sources/androidx/constraintlayout/widget/Constraints.java
Normal file
121
sources/androidx/constraintlayout/widget/Constraints.java
Normal file
@@ -0,0 +1,121 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class Constraints extends ViewGroup {
|
||||
ConstraintSet a;
|
||||
|
||||
public ConstraintSet getConstraintSet() {
|
||||
if (this.a == null) {
|
||||
this.a = new ConstraintSet();
|
||||
}
|
||||
this.a.a(this);
|
||||
return this.a;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: protected */
|
||||
@Override // android.view.ViewGroup
|
||||
public LayoutParams generateDefaultLayoutParams() {
|
||||
return new LayoutParams(-2, -2);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new LayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return new ConstraintLayout.LayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public static class LayoutParams extends ConstraintLayout.LayoutParams {
|
||||
public float m0;
|
||||
public boolean n0;
|
||||
public float o0;
|
||||
public float p0;
|
||||
public float q0;
|
||||
public float r0;
|
||||
public float s0;
|
||||
public float t0;
|
||||
public float u0;
|
||||
public float v0;
|
||||
public float w0;
|
||||
public float x0;
|
||||
public float y0;
|
||||
|
||||
public LayoutParams(int i, int i2) {
|
||||
super(i, i2);
|
||||
this.m0 = 1.0f;
|
||||
this.n0 = false;
|
||||
this.o0 = 0.0f;
|
||||
this.p0 = 0.0f;
|
||||
this.q0 = 0.0f;
|
||||
this.r0 = 0.0f;
|
||||
this.s0 = 1.0f;
|
||||
this.t0 = 1.0f;
|
||||
this.u0 = 0.0f;
|
||||
this.v0 = 0.0f;
|
||||
this.w0 = 0.0f;
|
||||
this.x0 = 0.0f;
|
||||
this.y0 = 0.0f;
|
||||
}
|
||||
|
||||
public LayoutParams(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.m0 = 1.0f;
|
||||
this.n0 = false;
|
||||
this.o0 = 0.0f;
|
||||
this.p0 = 0.0f;
|
||||
this.q0 = 0.0f;
|
||||
this.r0 = 0.0f;
|
||||
this.s0 = 1.0f;
|
||||
this.t0 = 1.0f;
|
||||
this.u0 = 0.0f;
|
||||
this.v0 = 0.0f;
|
||||
this.w0 = 0.0f;
|
||||
this.x0 = 0.0f;
|
||||
this.y0 = 0.0f;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.ConstraintSet);
|
||||
int indexCount = obtainStyledAttributes.getIndexCount();
|
||||
for (int i = 0; i < indexCount; i++) {
|
||||
int index = obtainStyledAttributes.getIndex(i);
|
||||
if (index == R$styleable.ConstraintSet_android_alpha) {
|
||||
this.m0 = obtainStyledAttributes.getFloat(index, this.m0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_elevation) {
|
||||
this.o0 = obtainStyledAttributes.getFloat(index, this.o0);
|
||||
this.n0 = true;
|
||||
} else if (index == R$styleable.ConstraintSet_android_rotationX) {
|
||||
this.q0 = obtainStyledAttributes.getFloat(index, this.q0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_rotationY) {
|
||||
this.r0 = obtainStyledAttributes.getFloat(index, this.r0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_rotation) {
|
||||
this.p0 = obtainStyledAttributes.getFloat(index, this.p0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_scaleX) {
|
||||
this.s0 = obtainStyledAttributes.getFloat(index, this.s0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_scaleY) {
|
||||
this.t0 = obtainStyledAttributes.getFloat(index, this.t0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_transformPivotX) {
|
||||
this.u0 = obtainStyledAttributes.getFloat(index, this.u0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_transformPivotY) {
|
||||
this.v0 = obtainStyledAttributes.getFloat(index, this.v0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_translationX) {
|
||||
this.w0 = obtainStyledAttributes.getFloat(index, this.w0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_translationY) {
|
||||
this.x0 = obtainStyledAttributes.getFloat(index, this.x0);
|
||||
} else if (index == R$styleable.ConstraintSet_android_translationZ) {
|
||||
this.w0 = obtainStyledAttributes.getFloat(index, this.y0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
61
sources/androidx/constraintlayout/widget/Guideline.java
Normal file
61
sources/androidx/constraintlayout/widget/Guideline.java
Normal file
@@ -0,0 +1,61 @@
|
||||
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);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void draw(Canvas canvas) {
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
setMeasuredDimension(0, 0);
|
||||
}
|
||||
|
||||
public void setGuidelineBegin(int i) {
|
||||
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
||||
layoutParams.a = i;
|
||||
setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public void setGuidelineEnd(int i) {
|
||||
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
||||
layoutParams.b = i;
|
||||
setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public void setGuidelinePercent(float f) {
|
||||
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
||||
layoutParams.c = f;
|
||||
setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setVisibility(int i) {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
89
sources/androidx/constraintlayout/widget/Placeholder.java
Normal file
89
sources/androidx/constraintlayout/widget/Placeholder.java
Normal file
@@ -0,0 +1,89 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.Typeface;
|
||||
import android.view.View;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class Placeholder extends View {
|
||||
private int a;
|
||||
private View b;
|
||||
private int c;
|
||||
|
||||
public void a(ConstraintLayout constraintLayout) {
|
||||
if (this.b == null) {
|
||||
return;
|
||||
}
|
||||
ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams) getLayoutParams();
|
||||
ConstraintLayout.LayoutParams layoutParams2 = (ConstraintLayout.LayoutParams) this.b.getLayoutParams();
|
||||
layoutParams2.k0.n(0);
|
||||
layoutParams.k0.o(layoutParams2.k0.s());
|
||||
layoutParams.k0.g(layoutParams2.k0.i());
|
||||
layoutParams2.k0.n(8);
|
||||
}
|
||||
|
||||
public void b(ConstraintLayout constraintLayout) {
|
||||
if (this.a == -1 && !isInEditMode()) {
|
||||
setVisibility(this.c);
|
||||
}
|
||||
this.b = constraintLayout.findViewById(this.a);
|
||||
View view = this.b;
|
||||
if (view != null) {
|
||||
((ConstraintLayout.LayoutParams) view.getLayoutParams()).Z = true;
|
||||
this.b.setVisibility(0);
|
||||
setVisibility(0);
|
||||
}
|
||||
}
|
||||
|
||||
public View getContent() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public int getEmptyVisibility() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void onDraw(Canvas canvas) {
|
||||
if (isInEditMode()) {
|
||||
canvas.drawRGB(223, 223, 223);
|
||||
Paint paint = new Paint();
|
||||
paint.setARGB(255, 210, 210, 210);
|
||||
paint.setTextAlign(Paint.Align.CENTER);
|
||||
paint.setTypeface(Typeface.create(Typeface.DEFAULT, 0));
|
||||
Rect rect = new Rect();
|
||||
canvas.getClipBounds(rect);
|
||||
paint.setTextSize(rect.height());
|
||||
int height = rect.height();
|
||||
int width = rect.width();
|
||||
paint.setTextAlign(Paint.Align.LEFT);
|
||||
paint.getTextBounds("?", 0, 1, rect);
|
||||
canvas.drawText("?", ((width / 2.0f) - (rect.width() / 2.0f)) - rect.left, ((height / 2.0f) + (rect.height() / 2.0f)) - rect.bottom, paint);
|
||||
}
|
||||
}
|
||||
|
||||
public void setContentId(int i) {
|
||||
View findViewById;
|
||||
if (this.a == i) {
|
||||
return;
|
||||
}
|
||||
View view = this.b;
|
||||
if (view != null) {
|
||||
view.setVisibility(0);
|
||||
((ConstraintLayout.LayoutParams) this.b.getLayoutParams()).Z = false;
|
||||
this.b = null;
|
||||
}
|
||||
this.a = i;
|
||||
if (i == -1 || (findViewById = ((View) getParent()).findViewById(i)) == null) {
|
||||
return;
|
||||
}
|
||||
findViewById.setVisibility(8);
|
||||
}
|
||||
|
||||
public void setEmptyVisibility(int i) {
|
||||
this.c = i;
|
||||
}
|
||||
}
|
22
sources/androidx/constraintlayout/widget/R$id.java
Normal file
22
sources/androidx/constraintlayout/widget/R$id.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$id {
|
||||
public static final int bottom = 2131296348;
|
||||
public static final int end = 2131296567;
|
||||
public static final int gone = 2131296667;
|
||||
public static final int invisible = 2131296978;
|
||||
public static final int left = 2131297071;
|
||||
public static final int packed = 2131297207;
|
||||
public static final int parent = 2131297214;
|
||||
public static final int percent = 2131297227;
|
||||
public static final int right = 2131297305;
|
||||
public static final int spread = 2131297494;
|
||||
public static final int spread_inside = 2131297495;
|
||||
public static final int start = 2131297500;
|
||||
public static final int top = 2131297568;
|
||||
public static final int wrap = 2131297985;
|
||||
|
||||
private R$id() {
|
||||
}
|
||||
}
|
154
sources/androidx/constraintlayout/widget/R$styleable.java
Normal file
154
sources/androidx/constraintlayout/widget/R$styleable.java
Normal file
@@ -0,0 +1,154 @@
|
||||
package androidx.constraintlayout.widget;
|
||||
|
||||
import android.R;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$styleable {
|
||||
public static final int ConstraintLayout_Layout_android_maxHeight = 2;
|
||||
public static final int ConstraintLayout_Layout_android_maxWidth = 1;
|
||||
public static final int ConstraintLayout_Layout_android_minHeight = 4;
|
||||
public static final int ConstraintLayout_Layout_android_minWidth = 3;
|
||||
public static final int ConstraintLayout_Layout_android_orientation = 0;
|
||||
public static final int ConstraintLayout_Layout_barrierAllowsGoneWidgets = 5;
|
||||
public static final int ConstraintLayout_Layout_barrierDirection = 6;
|
||||
public static final int ConstraintLayout_Layout_chainUseRtl = 7;
|
||||
public static final int ConstraintLayout_Layout_constraintSet = 8;
|
||||
public static final int ConstraintLayout_Layout_constraint_referenced_ids = 9;
|
||||
public static final int ConstraintLayout_Layout_layout_constrainedHeight = 10;
|
||||
public static final int ConstraintLayout_Layout_layout_constrainedWidth = 11;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintBaseline_creator = 12;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf = 13;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintBottom_creator = 14;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintBottom_toBottomOf = 15;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintBottom_toTopOf = 16;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintCircle = 17;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintCircleAngle = 18;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintCircleRadius = 19;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintDimensionRatio = 20;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintEnd_toEndOf = 21;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintEnd_toStartOf = 22;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintGuide_begin = 23;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintGuide_end = 24;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintGuide_percent = 25;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHeight_default = 26;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHeight_max = 27;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHeight_min = 28;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHeight_percent = 29;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_bias = 30;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle = 31;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_weight = 32;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintLeft_creator = 33;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintLeft_toLeftOf = 34;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintLeft_toRightOf = 35;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintRight_creator = 36;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintRight_toLeftOf = 37;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintRight_toRightOf = 38;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintStart_toEndOf = 39;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintStart_toStartOf = 40;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintTop_creator = 41;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintTop_toBottomOf = 42;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintTop_toTopOf = 43;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintVertical_bias = 44;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintVertical_chainStyle = 45;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintVertical_weight = 46;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintWidth_default = 47;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintWidth_max = 48;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintWidth_min = 49;
|
||||
public static final int ConstraintLayout_Layout_layout_constraintWidth_percent = 50;
|
||||
public static final int ConstraintLayout_Layout_layout_editor_absoluteX = 51;
|
||||
public static final int ConstraintLayout_Layout_layout_editor_absoluteY = 52;
|
||||
public static final int ConstraintLayout_Layout_layout_goneMarginBottom = 53;
|
||||
public static final int ConstraintLayout_Layout_layout_goneMarginEnd = 54;
|
||||
public static final int ConstraintLayout_Layout_layout_goneMarginLeft = 55;
|
||||
public static final int ConstraintLayout_Layout_layout_goneMarginRight = 56;
|
||||
public static final int ConstraintLayout_Layout_layout_goneMarginStart = 57;
|
||||
public static final int ConstraintLayout_Layout_layout_goneMarginTop = 58;
|
||||
public static final int ConstraintLayout_Layout_layout_optimizationLevel = 59;
|
||||
public static final int ConstraintLayout_placeholder_content = 0;
|
||||
public static final int ConstraintLayout_placeholder_emptyVisibility = 1;
|
||||
public static final int ConstraintSet_android_alpha = 13;
|
||||
public static final int ConstraintSet_android_elevation = 26;
|
||||
public static final int ConstraintSet_android_id = 1;
|
||||
public static final int ConstraintSet_android_layout_height = 4;
|
||||
public static final int ConstraintSet_android_layout_marginBottom = 8;
|
||||
public static final int ConstraintSet_android_layout_marginEnd = 24;
|
||||
public static final int ConstraintSet_android_layout_marginLeft = 5;
|
||||
public static final int ConstraintSet_android_layout_marginRight = 7;
|
||||
public static final int ConstraintSet_android_layout_marginStart = 23;
|
||||
public static final int ConstraintSet_android_layout_marginTop = 6;
|
||||
public static final int ConstraintSet_android_layout_width = 3;
|
||||
public static final int ConstraintSet_android_maxHeight = 10;
|
||||
public static final int ConstraintSet_android_maxWidth = 9;
|
||||
public static final int ConstraintSet_android_minHeight = 12;
|
||||
public static final int ConstraintSet_android_minWidth = 11;
|
||||
public static final int ConstraintSet_android_orientation = 0;
|
||||
public static final int ConstraintSet_android_rotation = 20;
|
||||
public static final int ConstraintSet_android_rotationX = 21;
|
||||
public static final int ConstraintSet_android_rotationY = 22;
|
||||
public static final int ConstraintSet_android_scaleX = 18;
|
||||
public static final int ConstraintSet_android_scaleY = 19;
|
||||
public static final int ConstraintSet_android_transformPivotX = 14;
|
||||
public static final int ConstraintSet_android_transformPivotY = 15;
|
||||
public static final int ConstraintSet_android_translationX = 16;
|
||||
public static final int ConstraintSet_android_translationY = 17;
|
||||
public static final int ConstraintSet_android_translationZ = 25;
|
||||
public static final int ConstraintSet_android_visibility = 2;
|
||||
public static final int ConstraintSet_barrierAllowsGoneWidgets = 27;
|
||||
public static final int ConstraintSet_barrierDirection = 28;
|
||||
public static final int ConstraintSet_chainUseRtl = 29;
|
||||
public static final int ConstraintSet_constraint_referenced_ids = 30;
|
||||
public static final int ConstraintSet_layout_constrainedHeight = 31;
|
||||
public static final int ConstraintSet_layout_constrainedWidth = 32;
|
||||
public static final int ConstraintSet_layout_constraintBaseline_creator = 33;
|
||||
public static final int ConstraintSet_layout_constraintBaseline_toBaselineOf = 34;
|
||||
public static final int ConstraintSet_layout_constraintBottom_creator = 35;
|
||||
public static final int ConstraintSet_layout_constraintBottom_toBottomOf = 36;
|
||||
public static final int ConstraintSet_layout_constraintBottom_toTopOf = 37;
|
||||
public static final int ConstraintSet_layout_constraintCircle = 38;
|
||||
public static final int ConstraintSet_layout_constraintCircleAngle = 39;
|
||||
public static final int ConstraintSet_layout_constraintCircleRadius = 40;
|
||||
public static final int ConstraintSet_layout_constraintDimensionRatio = 41;
|
||||
public static final int ConstraintSet_layout_constraintEnd_toEndOf = 42;
|
||||
public static final int ConstraintSet_layout_constraintEnd_toStartOf = 43;
|
||||
public static final int ConstraintSet_layout_constraintGuide_begin = 44;
|
||||
public static final int ConstraintSet_layout_constraintGuide_end = 45;
|
||||
public static final int ConstraintSet_layout_constraintGuide_percent = 46;
|
||||
public static final int ConstraintSet_layout_constraintHeight_default = 47;
|
||||
public static final int ConstraintSet_layout_constraintHeight_max = 48;
|
||||
public static final int ConstraintSet_layout_constraintHeight_min = 49;
|
||||
public static final int ConstraintSet_layout_constraintHeight_percent = 50;
|
||||
public static final int ConstraintSet_layout_constraintHorizontal_bias = 51;
|
||||
public static final int ConstraintSet_layout_constraintHorizontal_chainStyle = 52;
|
||||
public static final int ConstraintSet_layout_constraintHorizontal_weight = 53;
|
||||
public static final int ConstraintSet_layout_constraintLeft_creator = 54;
|
||||
public static final int ConstraintSet_layout_constraintLeft_toLeftOf = 55;
|
||||
public static final int ConstraintSet_layout_constraintLeft_toRightOf = 56;
|
||||
public static final int ConstraintSet_layout_constraintRight_creator = 57;
|
||||
public static final int ConstraintSet_layout_constraintRight_toLeftOf = 58;
|
||||
public static final int ConstraintSet_layout_constraintRight_toRightOf = 59;
|
||||
public static final int ConstraintSet_layout_constraintStart_toEndOf = 60;
|
||||
public static final int ConstraintSet_layout_constraintStart_toStartOf = 61;
|
||||
public static final int ConstraintSet_layout_constraintTop_creator = 62;
|
||||
public static final int ConstraintSet_layout_constraintTop_toBottomOf = 63;
|
||||
public static final int ConstraintSet_layout_constraintTop_toTopOf = 64;
|
||||
public static final int ConstraintSet_layout_constraintVertical_bias = 65;
|
||||
public static final int ConstraintSet_layout_constraintVertical_chainStyle = 66;
|
||||
public static final int ConstraintSet_layout_constraintVertical_weight = 67;
|
||||
public static final int ConstraintSet_layout_constraintWidth_default = 68;
|
||||
public static final int ConstraintSet_layout_constraintWidth_max = 69;
|
||||
public static final int ConstraintSet_layout_constraintWidth_min = 70;
|
||||
public static final int ConstraintSet_layout_constraintWidth_percent = 71;
|
||||
public static final int ConstraintSet_layout_editor_absoluteX = 72;
|
||||
public static final int ConstraintSet_layout_editor_absoluteY = 73;
|
||||
public static final int ConstraintSet_layout_goneMarginBottom = 74;
|
||||
public static final int ConstraintSet_layout_goneMarginEnd = 75;
|
||||
public static final int ConstraintSet_layout_goneMarginLeft = 76;
|
||||
public static final int ConstraintSet_layout_goneMarginRight = 77;
|
||||
public static final int ConstraintSet_layout_goneMarginStart = 78;
|
||||
public static final int ConstraintSet_layout_goneMarginTop = 79;
|
||||
public static final int LinearConstraintLayout_android_orientation = 0;
|
||||
public static final int[] ConstraintLayout_Layout = {R.attr.orientation, R.attr.maxWidth, R.attr.maxHeight, R.attr.minWidth, R.attr.minHeight, com.ubt.jimu.R.attr.barrierAllowsGoneWidgets, com.ubt.jimu.R.attr.barrierDirection, com.ubt.jimu.R.attr.chainUseRtl, com.ubt.jimu.R.attr.constraintSet, com.ubt.jimu.R.attr.constraint_referenced_ids, com.ubt.jimu.R.attr.layout_constrainedHeight, com.ubt.jimu.R.attr.layout_constrainedWidth, com.ubt.jimu.R.attr.layout_constraintBaseline_creator, com.ubt.jimu.R.attr.layout_constraintBaseline_toBaselineOf, com.ubt.jimu.R.attr.layout_constraintBottom_creator, com.ubt.jimu.R.attr.layout_constraintBottom_toBottomOf, com.ubt.jimu.R.attr.layout_constraintBottom_toTopOf, com.ubt.jimu.R.attr.layout_constraintCircle, com.ubt.jimu.R.attr.layout_constraintCircleAngle, com.ubt.jimu.R.attr.layout_constraintCircleRadius, com.ubt.jimu.R.attr.layout_constraintDimensionRatio, com.ubt.jimu.R.attr.layout_constraintEnd_toEndOf, com.ubt.jimu.R.attr.layout_constraintEnd_toStartOf, com.ubt.jimu.R.attr.layout_constraintGuide_begin, com.ubt.jimu.R.attr.layout_constraintGuide_end, com.ubt.jimu.R.attr.layout_constraintGuide_percent, com.ubt.jimu.R.attr.layout_constraintHeight_default, com.ubt.jimu.R.attr.layout_constraintHeight_max, com.ubt.jimu.R.attr.layout_constraintHeight_min, com.ubt.jimu.R.attr.layout_constraintHeight_percent, com.ubt.jimu.R.attr.layout_constraintHorizontal_bias, com.ubt.jimu.R.attr.layout_constraintHorizontal_chainStyle, com.ubt.jimu.R.attr.layout_constraintHorizontal_weight, com.ubt.jimu.R.attr.layout_constraintLeft_creator, com.ubt.jimu.R.attr.layout_constraintLeft_toLeftOf, com.ubt.jimu.R.attr.layout_constraintLeft_toRightOf, com.ubt.jimu.R.attr.layout_constraintRight_creator, com.ubt.jimu.R.attr.layout_constraintRight_toLeftOf, com.ubt.jimu.R.attr.layout_constraintRight_toRightOf, com.ubt.jimu.R.attr.layout_constraintStart_toEndOf, com.ubt.jimu.R.attr.layout_constraintStart_toStartOf, com.ubt.jimu.R.attr.layout_constraintTop_creator, com.ubt.jimu.R.attr.layout_constraintTop_toBottomOf, com.ubt.jimu.R.attr.layout_constraintTop_toTopOf, com.ubt.jimu.R.attr.layout_constraintVertical_bias, com.ubt.jimu.R.attr.layout_constraintVertical_chainStyle, com.ubt.jimu.R.attr.layout_constraintVertical_weight, com.ubt.jimu.R.attr.layout_constraintWidth_default, com.ubt.jimu.R.attr.layout_constraintWidth_max, com.ubt.jimu.R.attr.layout_constraintWidth_min, com.ubt.jimu.R.attr.layout_constraintWidth_percent, com.ubt.jimu.R.attr.layout_editor_absoluteX, com.ubt.jimu.R.attr.layout_editor_absoluteY, com.ubt.jimu.R.attr.layout_goneMarginBottom, com.ubt.jimu.R.attr.layout_goneMarginEnd, com.ubt.jimu.R.attr.layout_goneMarginLeft, com.ubt.jimu.R.attr.layout_goneMarginRight, com.ubt.jimu.R.attr.layout_goneMarginStart, com.ubt.jimu.R.attr.layout_goneMarginTop, com.ubt.jimu.R.attr.layout_optimizationLevel};
|
||||
public static final int[] ConstraintLayout_placeholder = {com.ubt.jimu.R.attr.content, com.ubt.jimu.R.attr.emptyVisibility};
|
||||
public static final int[] ConstraintSet = {R.attr.orientation, R.attr.id, R.attr.visibility, R.attr.layout_width, R.attr.layout_height, R.attr.layout_marginLeft, R.attr.layout_marginTop, R.attr.layout_marginRight, R.attr.layout_marginBottom, R.attr.maxWidth, R.attr.maxHeight, R.attr.minWidth, R.attr.minHeight, R.attr.alpha, R.attr.transformPivotX, R.attr.transformPivotY, R.attr.translationX, R.attr.translationY, R.attr.scaleX, R.attr.scaleY, R.attr.rotation, R.attr.rotationX, R.attr.rotationY, R.attr.layout_marginStart, R.attr.layout_marginEnd, R.attr.translationZ, R.attr.elevation, com.ubt.jimu.R.attr.barrierAllowsGoneWidgets, com.ubt.jimu.R.attr.barrierDirection, com.ubt.jimu.R.attr.chainUseRtl, com.ubt.jimu.R.attr.constraint_referenced_ids, com.ubt.jimu.R.attr.layout_constrainedHeight, com.ubt.jimu.R.attr.layout_constrainedWidth, com.ubt.jimu.R.attr.layout_constraintBaseline_creator, com.ubt.jimu.R.attr.layout_constraintBaseline_toBaselineOf, com.ubt.jimu.R.attr.layout_constraintBottom_creator, com.ubt.jimu.R.attr.layout_constraintBottom_toBottomOf, com.ubt.jimu.R.attr.layout_constraintBottom_toTopOf, com.ubt.jimu.R.attr.layout_constraintCircle, com.ubt.jimu.R.attr.layout_constraintCircleAngle, com.ubt.jimu.R.attr.layout_constraintCircleRadius, com.ubt.jimu.R.attr.layout_constraintDimensionRatio, com.ubt.jimu.R.attr.layout_constraintEnd_toEndOf, com.ubt.jimu.R.attr.layout_constraintEnd_toStartOf, com.ubt.jimu.R.attr.layout_constraintGuide_begin, com.ubt.jimu.R.attr.layout_constraintGuide_end, com.ubt.jimu.R.attr.layout_constraintGuide_percent, com.ubt.jimu.R.attr.layout_constraintHeight_default, com.ubt.jimu.R.attr.layout_constraintHeight_max, com.ubt.jimu.R.attr.layout_constraintHeight_min, com.ubt.jimu.R.attr.layout_constraintHeight_percent, com.ubt.jimu.R.attr.layout_constraintHorizontal_bias, com.ubt.jimu.R.attr.layout_constraintHorizontal_chainStyle, com.ubt.jimu.R.attr.layout_constraintHorizontal_weight, com.ubt.jimu.R.attr.layout_constraintLeft_creator, com.ubt.jimu.R.attr.layout_constraintLeft_toLeftOf, com.ubt.jimu.R.attr.layout_constraintLeft_toRightOf, com.ubt.jimu.R.attr.layout_constraintRight_creator, com.ubt.jimu.R.attr.layout_constraintRight_toLeftOf, com.ubt.jimu.R.attr.layout_constraintRight_toRightOf, com.ubt.jimu.R.attr.layout_constraintStart_toEndOf, com.ubt.jimu.R.attr.layout_constraintStart_toStartOf, com.ubt.jimu.R.attr.layout_constraintTop_creator, com.ubt.jimu.R.attr.layout_constraintTop_toBottomOf, com.ubt.jimu.R.attr.layout_constraintTop_toTopOf, com.ubt.jimu.R.attr.layout_constraintVertical_bias, com.ubt.jimu.R.attr.layout_constraintVertical_chainStyle, com.ubt.jimu.R.attr.layout_constraintVertical_weight, com.ubt.jimu.R.attr.layout_constraintWidth_default, com.ubt.jimu.R.attr.layout_constraintWidth_max, com.ubt.jimu.R.attr.layout_constraintWidth_min, com.ubt.jimu.R.attr.layout_constraintWidth_percent, com.ubt.jimu.R.attr.layout_editor_absoluteX, com.ubt.jimu.R.attr.layout_editor_absoluteY, com.ubt.jimu.R.attr.layout_goneMarginBottom, com.ubt.jimu.R.attr.layout_goneMarginEnd, com.ubt.jimu.R.attr.layout_goneMarginLeft, com.ubt.jimu.R.attr.layout_goneMarginRight, com.ubt.jimu.R.attr.layout_goneMarginStart, com.ubt.jimu.R.attr.layout_goneMarginTop};
|
||||
public static final int[] LinearConstraintLayout = {R.attr.orientation};
|
||||
}
|
Reference in New Issue
Block a user