Example usage for android.transition ChangeBounds setDuration

List of usage examples for android.transition ChangeBounds setDuration

Introduction

In this page you can find the example usage for android.transition ChangeBounds setDuration.

Prototype

public Transition setDuration(long duration) 

Source Link

Document

Sets the duration of this transition.

Usage

From source file:nu.yona.app.ui.YonaActivity.java

private void profileIcon() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        Slide slideTransition = new Slide(Gravity.RIGHT);
        slideTransition.setDuration(getResources().getInteger(R.integer.anim_duration_medium));

        ChangeBounds changeBoundsTransition = new ChangeBounds();
        changeBoundsTransition.setDuration(getResources().getInteger(R.integer.anim_duration_medium));

        mContent.setEnterTransition(slideTransition);
        mContent.setAllowEnterTransitionOverlap(true);
        mContent.setAllowReturnTransitionOverlap(true);
        mContent.setSharedElementEnterTransition(changeBoundsTransition);
    }//from  ww  w.  j av  a  2 s. c  o m
}