Search in sources :

Example 1 with SimpleTransitionListener

use of com.alexstyl.specialdates.transition.SimpleTransitionListener in project Memento-Calendar by alexstyl.

the class SearchActivity method exitTransitionWithAction.

private void exitTransitionWithAction(final Runnable endingAction) {
    Transition transition = FadeOutTransition.withAction(new SimpleTransitionListener() {

        @Override
        public void onTransitionEnd(Transition transition) {
            endingAction.run();
        }
    });
    TransitionManager.beginDelayedTransition(searchbar, transition);
    fader.hideContentOf(searchbar);
    TransitionManager.beginDelayedTransition(content, new Fade(Fade.OUT));
}
Also used : FadeOutTransition(com.alexstyl.specialdates.transition.FadeOutTransition) FadeInTransition(com.alexstyl.specialdates.transition.FadeInTransition) Transition(android.support.transition.Transition) SimpleTransitionListener(com.alexstyl.specialdates.transition.SimpleTransitionListener) Fade(android.support.transition.Fade)

Aggregations

Fade (android.support.transition.Fade)1 Transition (android.support.transition.Transition)1 FadeInTransition (com.alexstyl.specialdates.transition.FadeInTransition)1 FadeOutTransition (com.alexstyl.specialdates.transition.FadeOutTransition)1 SimpleTransitionListener (com.alexstyl.specialdates.transition.SimpleTransitionListener)1