use of android.transition.Slide in project GogoNew by kuldeep725.
the class MapsActivity method setupWindowAnimations.
private void setupWindowAnimations() {
Slide slide;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
slide = new Slide();
slide.setDuration(2000);
getWindow().setExitTransition(slide);
}
}
use of android.transition.Slide in project MaterializeYourApp by antoniolg.
the class DetailActivity method initActivityTransitions.
private void initActivityTransitions() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Slide transition = new Slide();
transition.excludeTarget(android.R.id.statusBarBackground, true);
getWindow().setEnterTransition(transition);
getWindow().setReturnTransition(transition);
}
}
Aggregations