One option is to use ActivityOptionsCompat.makeScaleUpAnimation
Activity activity = getActivity();
Intent intent = new Intent(activity, OtherActivity.class);
Bundle options = ActivityOptionsCompat.makeScaleUpAnimation(
sourceView, 0, 0, sourceView.getWidth(), sourceView.getHeight()).toBundle();
ActivityCompat.startActivity(activity, intent, options);
This will cause the new activity to expand vertically and horizontally outwards from your sourceView
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…