mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
29 lines
902 B
Java
29 lines
902 B
Java
package com.google.android.material.animation;
|
|
|
|
import android.graphics.Matrix;
|
|
import android.util.Property;
|
|
import android.widget.ImageView;
|
|
import androidx.annotation.NonNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.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
|
|
@NonNull
|
|
public Matrix get(@NonNull ImageView imageView) {
|
|
this.matrix.set(imageView.getImageMatrix());
|
|
return this.matrix;
|
|
}
|
|
|
|
@Override // android.util.Property
|
|
public void set(@NonNull ImageView imageView, @NonNull Matrix matrix) {
|
|
imageView.setImageMatrix(matrix);
|
|
}
|
|
}
|