27 lines
729 B
Java
27 lines
729 B
Java
package com.google.android.material.animation;
|
|
|
|
import android.graphics.Matrix;
|
|
import android.util.Property;
|
|
import android.widget.ImageView;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ImageMatrixProperty extends Property<ImageView, Matrix> {
|
|
private final Matrix matrix;
|
|
|
|
public ImageMatrixProperty() {
|
|
super(Matrix.class, "imageMatrixProperty");
|
|
this.matrix = new Matrix();
|
|
}
|
|
|
|
@Override // android.util.Property
|
|
public void set(ImageView imageView, Matrix matrix) {
|
|
imageView.setImageMatrix(matrix);
|
|
}
|
|
|
|
@Override // android.util.Property
|
|
public Matrix get(ImageView imageView) {
|
|
this.matrix.set(imageView.getImageMatrix());
|
|
return this.matrix;
|
|
}
|
|
}
|