Delay animation with Transitions framework

Viewed 2517

I am trying to delay a transition using TransitionManager.beginDelayedTransition() from the support library.

I want to use AutoTransition for make a LinearLayout appearing/disappearing. The animation works perfectly as expected, except that it is not delayed.

TransitionManager.beginDelayedTransition(rootViewGroup, new AutoTransition().setStartDelay(1000));
linearLayout.setVisibility(View.VISIBLE);

The linearLayout is in the hierarchy of the rootViewGroup of course.

1 Answers
Related