75 lines
2.1 KiB
Java
75 lines
2.1 KiB
Java
package androidx.transition;
|
|
|
|
import android.graphics.Matrix;
|
|
import android.view.View;
|
|
|
|
/* loaded from: classes.dex */
|
|
class ViewUtilsBase {
|
|
ViewUtilsBase() {
|
|
}
|
|
|
|
public void a(View view, float f) {
|
|
Float f2 = (Float) view.getTag(R$id.save_non_transition_alpha);
|
|
if (f2 != null) {
|
|
view.setAlpha(f2.floatValue() * f);
|
|
} else {
|
|
view.setAlpha(f);
|
|
}
|
|
}
|
|
|
|
public float b(View view) {
|
|
Float f = (Float) view.getTag(R$id.save_non_transition_alpha);
|
|
return f != null ? view.getAlpha() / f.floatValue() : view.getAlpha();
|
|
}
|
|
|
|
public void c(View view) {
|
|
if (view.getTag(R$id.save_non_transition_alpha) == null) {
|
|
view.setTag(R$id.save_non_transition_alpha, Float.valueOf(view.getAlpha()));
|
|
}
|
|
}
|
|
|
|
public void a(View view) {
|
|
if (view.getVisibility() == 0) {
|
|
view.setTag(R$id.save_non_transition_alpha, null);
|
|
}
|
|
}
|
|
|
|
public void b(View view, Matrix matrix) {
|
|
Object parent = view.getParent();
|
|
if (parent instanceof View) {
|
|
b((View) parent, matrix);
|
|
matrix.postTranslate(r0.getScrollX(), r0.getScrollY());
|
|
}
|
|
matrix.postTranslate(view.getLeft(), view.getTop());
|
|
Matrix matrix2 = view.getMatrix();
|
|
if (matrix2.isIdentity()) {
|
|
return;
|
|
}
|
|
Matrix matrix3 = new Matrix();
|
|
if (matrix2.invert(matrix3)) {
|
|
matrix.postConcat(matrix3);
|
|
}
|
|
}
|
|
|
|
public void a(View view, Matrix matrix) {
|
|
Object parent = view.getParent();
|
|
if (parent instanceof View) {
|
|
a((View) parent, matrix);
|
|
matrix.preTranslate(-r0.getScrollX(), -r0.getScrollY());
|
|
}
|
|
matrix.preTranslate(view.getLeft(), view.getTop());
|
|
Matrix matrix2 = view.getMatrix();
|
|
if (matrix2.isIdentity()) {
|
|
return;
|
|
}
|
|
matrix.preConcat(matrix2);
|
|
}
|
|
|
|
public void a(View view, int i, int i2, int i3, int i4) {
|
|
view.setLeft(i);
|
|
view.setTop(i2);
|
|
view.setRight(i3);
|
|
view.setBottom(i4);
|
|
}
|
|
}
|