Search in sources :

Example 1 with SharedElementDelayingChangeHandler

use of com.bluelinelabs.conductor.demo.changehandler.SharedElementDelayingChangeHandler in project Conductor by bluelinelabs.

the class CityGridController method onModelRowClick.

void onModelRowClick(CityModel model) {
    String imageTransitionName = getResources().getString(R.string.transition_tag_image_named, model.title);
    String titleTransitionName = getResources().getString(R.string.transition_tag_title_named, model.title);
    List<String> names = new ArrayList<>();
    names.add(imageTransitionName);
    names.add(titleTransitionName);
    getRouter().pushController(RouterTransaction.with(new CityDetailController(model.drawableRes, model.title)).pushChangeHandler(new TransitionChangeHandlerCompat(new SharedElementDelayingChangeHandler(names), new FadeChangeHandler())).popChangeHandler(new TransitionChangeHandlerCompat(new SharedElementDelayingChangeHandler(names), new FadeChangeHandler())));
}
Also used : TransitionChangeHandlerCompat(com.bluelinelabs.conductor.changehandler.TransitionChangeHandlerCompat) FadeChangeHandler(com.bluelinelabs.conductor.changehandler.FadeChangeHandler) ArrayList(java.util.ArrayList) SharedElementDelayingChangeHandler(com.bluelinelabs.conductor.demo.changehandler.SharedElementDelayingChangeHandler)

Aggregations

FadeChangeHandler (com.bluelinelabs.conductor.changehandler.FadeChangeHandler)1 TransitionChangeHandlerCompat (com.bluelinelabs.conductor.changehandler.TransitionChangeHandlerCompat)1 SharedElementDelayingChangeHandler (com.bluelinelabs.conductor.demo.changehandler.SharedElementDelayingChangeHandler)1 ArrayList (java.util.ArrayList)1