Skip to content

splm/WeVision

Repository files navigation

###What is WeVision?

An animation libary which bases on NineOldAndroids.


###Preview

###How 2 use: Step 1:

    compile project (':wevisionengine')
    compile 'com.nineoldandroids:library:2.4.0'

Step 2:

    //You can interpreted simply as WeVision engine use FadeInLeft effection on target view.
     WeVisionEngine.WeVisionStatus status=WeVisionEngine.use(Vision.FadeInLeft).addListener(new AbsBaseAnimation.WeVisionAnimatorListener() {
                @Override
                public void onStart(Animator animator) {
                    Log.e(TAG,"The animations of whole views are starting!");
                }

                @Override
                public void onEnd() {
                    Log.e(TAG,"All of animations have completed!");
                }

            }).playOn(target_container);
  • I want to check state
WeVisionStatus status=WeVisionEngine.use(Vision.FadeInLeft).playOn(targetView);
boolean isRunning=status.isRunning(); //isRunning
boolean isEnd=status.isEnd();//isEnd
  • I want to stop!
status.stop();

###Notice

About what type of parameters apply for "playOn" method,if parameter "target" is a common view,you could see a simple vision; but if you set a viewgroup as a parameter,all of the children in this viewgroup are going to work,and then excuted in order!

###Reference

###Contact me

Email: [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages