use of android.support.v4.view.animation.LinearOutSlowInInterpolator in project PreLollipopTransition by takahirom.
the class EndFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_end, container, false);
final ExitFragmentTransition exitFragmentTransition = FragmentTransition.with(this).interpolator(new LinearOutSlowInInterpolator()).to(v.findViewById(R.id.fragment_imageView)).start(savedInstanceState);
exitFragmentTransition.exitListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
Log.d("TAG", "onAnimationStart: ");
}
@Override
public void onAnimationEnd(Animator animation) {
Log.d("TAG", "onAnimationEnd: ");
}
}).interpolator(new FastOutSlowInInterpolator());
exitFragmentTransition.startExitListening();
return v;
}
Aggregations