Realtime interpolator editor(Inspired by Facebook Rebound)
Realtime interpolator editor(Inspired by Facebook Rebound)
A Java library that adjust interpolator dynamicly(Inspired by Facebook Rebound)
As a UI Prototype Designer.The most painful part is compiling.After I finished the code work.I had to wait for about 10 seconds. So I write this for adjust animation's Parameter efficiently.
1.Add these into your project.
InterpolatorAnimator.java
InterpolatorConfig.java
InterpolatorConfigRegistry.java
InterpolatorConfigurationView.java 2.Import them in your MainActivity
import com.martin.interpolator.InterpolatorAnimator;
import com.martin.interpolator.InterpolatorConfig;
import com.martin.interpolator.InterpolatorConfigRegistry;
import com.martin.interpolator.InterpolatorConfigurationView;1.In you layout xml,add this:
2.Create a function to set Interpolator Config & add ConfiguratorView
…3.Use it directly!
findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mIsOut = !mIsOut;
float startValue = mIsOut?1f:0f;
float endValue = mIsOut?0f:1f;
InterpolatorAnimator animator = new InterpolatorAnimator(view, "translationY", startValue, endValue,config0.interpolator,config0.duration,config0.delayTime);
}
});47 different easing interpolators(Which contains native interpolators & interpolators from Easing.net)
…In the latest update,I added a typeface into the project,don't forget to grab it into your project,or it will be crushed...
Special thanks to CymChad,he gave me lots of help in java coding.
…No open issues yet, or sync has not completed.