You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement android.graphics.Matrix and View.getMatrix()
This is needed for androidx CoordinatorLayout and will also be required for VectorDrawables
This commit is contained in:
@@ -1374,7 +1374,13 @@ public class View extends Object {
|
||||
public boolean onGenericMotionEvent(MotionEvent event) {return false;}
|
||||
|
||||
protected boolean awakenScrollBars() {return false;}
|
||||
public Matrix getMatrix() {return new Matrix();}
|
||||
|
||||
protected native boolean native_getMatrix(long widget, long matrix);
|
||||
public Matrix getMatrix() {
|
||||
Matrix matrix = new Matrix();
|
||||
native_getMatrix(widget, matrix.native_instance);
|
||||
return matrix;
|
||||
}
|
||||
|
||||
protected static final int[] EMPTY_STATE_SET = new int[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user