Hi. MotionLayout needs a little optimization.
I have child view with fixed height (for example 1599px)
When I moving it out of screen child height resized to 1598px and measure called.
It happens when child start out of screen.
l = (int)(0.5F + v_x);
int t = (int)(0.5F + v_y);
int r = (int)(0.5F + v_x + v_width);
int b = (int)(0.5F + v_y + v_height);
int i_width = r - l;
int i_height = b - t;
boolean remeasure = i_width != view.getWidth() || i_height != view.getHeight();
Hi. MotionLayout needs a little optimization. I have child view with fixed height (for example 1599px) When I moving it out of screen child height resized to 1598px and measure called. It happens when child start out of screen.
Mistake in: Class: androidx.constraintlayout.motion.widget.MotionPaths.java Method: void setView(View view, int[] toUse, double[] data, double[] slope, double[] cycle)
v_height = 1599.0 v_y = -0.91099477
t = 0 b = 1598.0 remeasure = true
Same issue when v_x gets less than 0