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));
}
Aggregations