tumblr / backboard Goto Github PK
View Code? Open in Web Editor NEWA motion-driven animation framework for Android.
License: Apache License 2.0
A motion-driven animation framework for Android.
License: Apache License 2.0
Actor walk = new Actor.Builder(SpringSystem.create(), walker)
.addMotion(
new MotionImitator(MotionProperty.X),
new Performer(View.TRANSLATION_X))
.build();
Can you please add some demo part of the link or GIF image for animation?
It would be great.
Is it possible to update the Backboard Gradle dependency from 0.1.0
? Some of the examples in backboard-example
are not possible to migrate over to my own codebase, for example in PressFragment
there is an addMotion
method where an EventImitator
is passed in but the current version in Bintray does not have that.
Actor.Builder's .addMotion method no longer takes a ToggleImitator, and even if it did, the ToggleImitator no longer takes a null spring for it's first argument.
Any plan to publish it?
Thanks for this lib, looks great.
I want to know how to set functions after Spring Animation is done.
Below is example code. I added some codes at the end of BloomFragment which is in backboard-example.
// mRootView.setOnTouchListener(new ToggleImitator(spring, CLOSED, OPEN));
// Instead of ToggleImitator, I made below codes for holding spring animation.
mRootView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(mySpring.getEndValue() == OPEN) {
mySpring.setEndValue(CLOSED);
Log.d("SpringValue", String.valueOf(mySpring.getEndValue()));
} else {
mySpring.setEndValue(OPEN);
Log.d("SpringValue", String.valueOf(mySpring.getEndValue()));
}
}
});
But, what I really want to know is getting Listener whether spring animation is over. (for adding Logs, changing circle's color, or something else which is really important to performing app)
I already used spring.addListener(SimpleSpringListener listener)
like below code.
mySpring.addListener(new SimpleSpringListener() {
@Override
public void onSpringActivate(Spring spring) {
super.onSpringActivate(spring);
if (spring.getCurrentValue() == spring.getEndValue()) {
Log.d("Spring State", "END");
}
}
});
But, not working at all.... :(
Please help me!!
// I already added same question on StackOverflow but no-one answer me :(
Support for it?
When I create an animation using actor like the following:
new Actor.Builder(SpringSystem.create(), rootView.findViewById(R.id.circle)) .addTranslateMotion(Imitator.TRACK_DELTA, Imitator.FOLLOW_EXACT, MotionProperty.X).build();
I want to add a listener to control the behavior of the animation itself or to track the user actions, ex. when the user touch the view down, up or start moving it.
Note: I want to use this animation to create "Slide to Cancel" function. how can I achieve this function using the above animation.
Is possibile to use a nested scrolling view (recyclerview,scrollview) with this library??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.