Java Code Examples for com.nineoldandroids.animation.ObjectAnimator#ofObject()
The following examples show how to use
com.nineoldandroids.animation.ObjectAnimator#ofObject() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimelyView.java From TimelyView with Apache License 2.0 | 5 votes |
public ObjectAnimator animate(int start, int end) { lastEnd = end; lastStart = start; float[][] startPoints = NumberUtils.getControlPointsFor(start); float[][] endPoints = NumberUtils.getControlPointsFor(end); return ObjectAnimator.ofObject(this, CONTROL_POINTS_PROPERTY, new TimelyEvaluator(), startPoints, endPoints); }
Example 2
Source File: TimelyView.java From TimelyView with Apache License 2.0 | 5 votes |
public ObjectAnimator animate(int end) { lastEnd = end; float[][] startPoints = NumberUtils.getControlPointsFor(-1); float[][] endPoints = NumberUtils.getControlPointsFor(end); return ObjectAnimator.ofObject(this, CONTROL_POINTS_PROPERTY, new TimelyEvaluator(), startPoints, endPoints); }
Example 3
Source File: CurveAction.java From android-player with Apache License 2.0 | 5 votes |
@Override public void animate(View view) { final ObjectAnimator anim = ObjectAnimator.ofObject(this, PATH_POINT_LOCATION, new PathEvaluator(), path.getPoints().toArray()); anim.setInterpolator(getInterpolator()); anim.setDuration(getDuration()); anim.start(); }
Example 4
Source File: TimelyView.java From UltimateAndroid with Apache License 2.0 | 4 votes |
public ObjectAnimator animate(int start, int end) { float[][] startPoints = NumberUtils.getControlPointsFor(start); float[][] endPoints = NumberUtils.getControlPointsFor(end); return ObjectAnimator.ofObject(this, CONTROL_POINTS_PROPERTY, new TimelyEvaluator(), startPoints, endPoints); }
Example 5
Source File: TimelyView.java From UltimateAndroid with Apache License 2.0 | 4 votes |
public ObjectAnimator animate(int end) { float[][] startPoints = NumberUtils.getControlPointsFor(-1); float[][] endPoints = NumberUtils.getControlPointsFor(end); return ObjectAnimator.ofObject(this, CONTROL_POINTS_PROPERTY, new TimelyEvaluator(), startPoints, endPoints); }