Skip to content

ActivityAnimation helper and Picture preview helper like transition on Lollipop..

Notifications You must be signed in to change notification settings

vivian8725118/ActivityAnimation

 
 

Repository files navigation

ActivityAnimation helper and ImageView transition With ViewPager

Just see WeChat IOS IOS IOS(not android) share moments,When u click friend's picture moments or see gift below..

FINAL EFFECT

EFFECT

#ActivityAnimation Usage

  Pre activity onCreate()..
  ActivityTransitionEnterHelper.with(this).fromView(fromView).imageUrl(imgUrl).start(Test.class);
  Sub activity onCreate()..
  transitionExitHelper = ActivityTransitionExitHelper.with(getIntent()).toView(mImageView).background(mBackgroudnView).start(savedInstanceState);
                      @Override
                      public void onBackPressed() {
                          transitionExitHelper.runExitAnimation(new Runnable() {
                              @Override
                              public void run() {
                                  finish();
                              }
                          });
                      }
                      @Override
                      public void finish() {
                          super.finish();
                          // override transitions to skip the standard window animations
                          overridePendingTransition(0, 0);
                      }

#ImageView transition with ViewPager More see detail code..

#THANKS PhotoView from https://github.com/bm-x/PhotoView Custom Activity Animations from https://www.youtube.com/watch?v=CPxkoe2MraA

About

ActivityAnimation helper and Picture preview helper like transition on Lollipop..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%