Loading res/animator-v23/discovery_bounce.xml +3 −3 Original line number Diff line number Diff line Loading @@ -26,14 +26,14 @@ android:fraction="0" android:value="1f" /> <keyframe android:fraction="0.346" android:fraction="0.246" android:value="1f" /> <keyframe android:fraction=".423" android:interpolator="@interpolator/disco_bounce" android:value="0.9438f" /> android:value="0.9738f" /> <keyframe android:fraction="0.654" android:fraction="0.754" android:interpolator="@interpolator/disco_bounce" android:value="1f" /> <keyframe Loading src/com/android/launcher3/allapps/DiscoveryBounce.java +3 −3 Original line number Diff line number Diff line Loading @@ -156,14 +156,14 @@ public class DiscoveryBounce extends AbstractFloatingView { float verticalProgress = OVERVIEW.getVerticalProgress(launcher); TimeInterpolator pathInterpolator = new PathInterpolator(0.35f, 0, 0.5f, 1); Keyframe keyframe3 = Keyframe.ofFloat(0.423f, verticalProgress - (1 - 0.9438f)); Keyframe keyframe3 = Keyframe.ofFloat(0.423f, verticalProgress - (1 - 0.9738f)); keyframe3.setInterpolator(pathInterpolator); Keyframe keyframe4 = Keyframe.ofFloat(0.654f, verticalProgress); Keyframe keyframe4 = Keyframe.ofFloat(0.754f, verticalProgress); keyframe4.setInterpolator(pathInterpolator); PropertyValuesHolder propertyValuesHolder = PropertyValuesHolder.ofKeyframe("progress", Keyframe.ofFloat(0, verticalProgress), Keyframe.ofFloat(0.346f, verticalProgress), keyframe3, keyframe4, Keyframe.ofFloat(0.246f, verticalProgress), keyframe3, keyframe4, Keyframe.ofFloat(1f, verticalProgress)); ObjectAnimator animator = ObjectAnimator.ofPropertyValuesHolder(null, new PropertyValuesHolder[]{propertyValuesHolder}); Loading Loading
res/animator-v23/discovery_bounce.xml +3 −3 Original line number Diff line number Diff line Loading @@ -26,14 +26,14 @@ android:fraction="0" android:value="1f" /> <keyframe android:fraction="0.346" android:fraction="0.246" android:value="1f" /> <keyframe android:fraction=".423" android:interpolator="@interpolator/disco_bounce" android:value="0.9438f" /> android:value="0.9738f" /> <keyframe android:fraction="0.654" android:fraction="0.754" android:interpolator="@interpolator/disco_bounce" android:value="1f" /> <keyframe Loading
src/com/android/launcher3/allapps/DiscoveryBounce.java +3 −3 Original line number Diff line number Diff line Loading @@ -156,14 +156,14 @@ public class DiscoveryBounce extends AbstractFloatingView { float verticalProgress = OVERVIEW.getVerticalProgress(launcher); TimeInterpolator pathInterpolator = new PathInterpolator(0.35f, 0, 0.5f, 1); Keyframe keyframe3 = Keyframe.ofFloat(0.423f, verticalProgress - (1 - 0.9438f)); Keyframe keyframe3 = Keyframe.ofFloat(0.423f, verticalProgress - (1 - 0.9738f)); keyframe3.setInterpolator(pathInterpolator); Keyframe keyframe4 = Keyframe.ofFloat(0.654f, verticalProgress); Keyframe keyframe4 = Keyframe.ofFloat(0.754f, verticalProgress); keyframe4.setInterpolator(pathInterpolator); PropertyValuesHolder propertyValuesHolder = PropertyValuesHolder.ofKeyframe("progress", Keyframe.ofFloat(0, verticalProgress), Keyframe.ofFloat(0.346f, verticalProgress), keyframe3, keyframe4, Keyframe.ofFloat(0.246f, verticalProgress), keyframe3, keyframe4, Keyframe.ofFloat(1f, verticalProgress)); ObjectAnimator animator = ObjectAnimator.ofPropertyValuesHolder(null, new PropertyValuesHolder[]{propertyValuesHolder}); Loading