Giter Club home page Giter Club logo

backboard's People

Contributors

bonnyfone avatar cesarferreira avatar ericleong avatar irace avatar oguzkocer avatar orbar avatar prayagverma avatar semoncat avatar sergiiz avatar vbauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

backboard's Issues

Can I set onAnimationEnd()?

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 :(

Poytan

Actor walk = new Actor.Builder(SpringSystem.create(), walker)
.addMotion(
new MotionImitator(MotionProperty.X),
new Performer(View.TRANSLATION_X))
.build();

Update Gradle dependency

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.

RecyclerView usage

Is possibile to use a nested scrolling view (recyclerview,scrollview) with this library??

add animation listener

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.