Java Code Examples for android.support.v4.app.ActivityCompat.startPostponedEnterTransition()

The following are Jave code examples for showing how to use startPostponedEnterTransition() of the android.support.v4.app.ActivityCompat class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Avengers   File: ComicDetailsActivity.java   Source Code and License Vote up 5 votes
@Override
public void showEffect() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        ViewCompat.setTransitionName(mainImage, IMG_TRANSITION_TAG);
        ActivityCompat.startPostponedEnterTransition(this);
    }
}
 
Example 2
Project: Instincts-2k17   File: GalleryViewPagerActivity.java   Source Code and License Vote up 4 votes
@Override
public void onGlobalLayout() {
    viewPager.getViewTreeObserver().removeOnGlobalLayoutListener(pagerLayoutListener);
    ActivityCompat.startPostponedEnterTransition(GalleryViewPagerActivity.this);
}