GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sherchen/AnimationsDemo: transition animation,blur animation, recylerview animation,image handle

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
ThirdParty
ThirdParty
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
ezgif-3-18309fe7e5.gif
ezgif-3-18309fe7e5.gif
 
 
ezgif-3-756e27f448.gif
ezgif-3-756e27f448.gif
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
markets.txt
markets.txt
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Gif demo

image

image

Transition Animation

if api > 21, use activity transition animation, otherwise use Transitions-Everywhere

if(TransitionHelper.isSysTransitionEnable()) {
                    final Pair<View, String>[] pairs = TransitionHelper.createSafeTransitionParticipants(
                        HomeActivity.this, false,
                            new Pair<>((ImageView) view.findViewById(R.id.iv_item_profile)
                                    , getString(R.string.transition_image))
                    );
                    Intent intent = new Intent(HomeActivity.this, DetailActivity.class);
                    intent.putExtra(DetailActivity.KEY_USE_SYS_TRANSITION, true);
                    TransitionsEntity entity = new TransitionsEntity();
                    entity.setUrl(adapter.getItem(position).getUrl());
                    intent.putExtra(DetailActivity.KEY_ENTITY, entity);
                    ActivityOptionsCompat transitionActivityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation(HomeActivity.this, pairs);
                    startActivity(intent, transitionActivityOptions.toBundle());
                }else{
                    int[] locs = new int[2];
                    clickImage = (ImageView) view.findViewById(R.id.iv_item_profile);
                    clickImage.getLocationOnScreen(locs);
                    clickOrigin = new TransitionsEntity();
                    clickOrigin.setLeft(locs[0]);
                    clickOrigin.setTop(locs[1]);
                    clickOrigin.setWidth(clickImage.getWidth());
                    clickOrigin.setHeight(clickImage.getHeight());
                    HomeEntity item = (HomeEntity) adapter.getItem(position);
                    clickOrigin.setUrl(item.getUrl());
                    GlideUtils.displayImage(getApplicationContext(), ivTrans, item.getUrl(), R.drawable.def_placeholder);
                    Intent intent = new Intent(HomeActivity.this, DetailActivity.class);
                    intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
                    intent.putExtra(DetailActivity.KEY_ENTITY, false);
                    intent.putExtra(DetailActivity.KEY_ENTITY, clickOrigin);
                    startActivityForResult(intent, REQUEST_CODE_DEF);
                    overridePendingTransition(0, 0);
                }
            }
            
            ivDetail.setTranslationX(lastTranX);
            ivDetail.setTranslationY(lastTranY);
            ivDetail.setVisibility(View.VISIBLE);
            rlDetailRoot.postDelayed(new Runnable() {
                @Override
                public void run() {
                    TransitionManager.beginDelayedTransition(rlDetailRoot, new TranslationTransition().setPathMotion(new ArcMotion()).setDuration(200));
                    ivDetail.setTranslationX(0);
                    ivDetail.setTranslationY(0);
                }
            }, 20);

blur animation

use Blurry

Blurry.with(getActivity())
                .radius(10)
                .sampling(newSampling)
                .async(new Blurry.ImageComposer.ImageComposerListener() {
                    @Override
                    public void onImageReady(BitmapDrawable drawable) {
                          if(lastAlpha == 1f){
                              ivDetailHeader.setImageBitmap(srcHeaderBg);
                          }  else {
                              ivDetailHeader.setImageDrawable(drawable);
                          }
                    }
                })
                .from(srcHeaderBg)
                .into(ivDetailHeader)

recycler animation

use recyclerview-animations

rvDetailEvents.setItemAnimator(new SlideInLeftAnimator());
        rvDetailEvents.getItemAnimator().setAddDuration(500);
        rvDetailEvents.getItemAnimator().setRemoveDuration(500);

Thanks

  1. https://github.com/Hitomis/transferee
  2. https://github.com/Skykai521/StickerCamera
  3. https://github.com/gogopop/CameraKit-Android
  4. https://github.com/ksoichiro/Android-ObservableScrollView
  5. https://github.com/wasabeef/recyclerview-animators
  6. https://github.com/wasabeef/Blurry

About

transition animation,blur animation, recylerview animation,image handle

Resources

Readme
License
Activity

Stars

5 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.