5

I have implemented shared element image transition with recycler view and its working fine. The issue is that i want to increase its image transition speed like google photo app have. Can we do this programmetically ? I'm sharing few lines of code.

Start Activity

    Intent intent = new Intent(StartActivity.this, TargetActivity.class);

                intent.putExtra(KEY_EXTRA_IMAGES_URLS, urls);
                ActivityOptionsCompat options = ActivityOptionsCompat.
                        makeSceneTransitionAnimation(StartActivity.this, view,
getResources().getString(R.string.transition_name_profile_image));
                ActivityCompat.startActivity(StartActivity.this, intent, options.toBundle());
JosephM
  • 2,935
  • 4
  • 18
  • 28

1 Answers1

5

You can change the transition time in your activity as:

    getWindow().setSharedElementEnterTransition(new ChangeBounds().setDuration(2000));
M.Waqas Pervez
  • 2,492
  • 2
  • 19
  • 33