mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-06 02:46:57 +00:00
Improves overview split adjacent launch animation
* Translation gets scaled along with the parent, so the secondary thumbnailView which has a translate on it gets exaggerated as the parent goes to fullscreen scale. * Now we inversely scale translationX/Y properties, however it seems like the interpolation is still slighly off at the beginning of the animation (or maybe some other value, such as pivot, etc) Bug: 260814999 Test: Manually slowed down animation and observed Change-Id: I831476b4ffb582fecbd166525ceea33623e66bdd
This commit is contained in:
@@ -768,4 +768,14 @@ public final class Utilities {
|
||||
public static float getYVelocity(VelocityTracker velocityTracker, MotionEvent event) {
|
||||
return getYVelocity(velocityTracker, event, -1 /* ACTIVE_POINTER_ID */);
|
||||
}
|
||||
|
||||
/** Logs the Scale and Translate properties of a matrix. Ignores skew and perspective. */
|
||||
public static void logMatrix(String label, Matrix matrix) {
|
||||
float[] matrixValues = new float[9];
|
||||
matrix.getValues(matrixValues);
|
||||
Log.d(label, String.format("%s: %s\nscale (x,y) = (%f, %f)\ntranslate (x,y) = (%f, %f)",
|
||||
label, matrix, matrixValues[Matrix.MSCALE_X], matrixValues[Matrix.MSCALE_Y],
|
||||
matrixValues[Matrix.MTRANS_X], matrixValues[Matrix.MTRANS_Y]
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user