Search in sources :

Example 11 with LinearOutSlowInInterpolator

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;
}
Also used : LinearOutSlowInInterpolator(android.support.v4.view.animation.LinearOutSlowInInterpolator) Animator(android.animation.Animator) AnimatorListenerAdapter(android.animation.AnimatorListenerAdapter) FastOutSlowInInterpolator(android.support.v4.view.animation.FastOutSlowInInterpolator) View(android.view.View) ExitFragmentTransition(com.kogitune.activity_transition.fragment.ExitFragmentTransition)

Aggregations

LinearOutSlowInInterpolator (android.support.v4.view.animation.LinearOutSlowInInterpolator)11 Animator (android.animation.Animator)7 AnimatorListenerAdapter (android.animation.AnimatorListenerAdapter)6 View (android.view.View)5 ObjectAnimator (android.animation.ObjectAnimator)4 ValueAnimator (android.animation.ValueAnimator)2 TargetApi (android.annotation.TargetApi)2 Nullable (android.support.annotation.Nullable)2 FastOutSlowInInterpolator (android.support.v4.view.animation.FastOutSlowInInterpolator)2 ExitFragmentTransition (com.kogitune.activity_transition.fragment.ExitFragmentTransition)2 AnimatorSet (android.animation.AnimatorSet)1 AnimatorUpdateListener (android.animation.ValueAnimator.AnimatorUpdateListener)1 FastOutLinearInInterpolator (android.support.v4.view.animation.FastOutLinearInInterpolator)1 ViewGroup (android.view.ViewGroup)1 ViewTreeObserver (android.view.ViewTreeObserver)1 OvershootInterpolator (android.view.animation.OvershootInterpolator)1 TextView (android.widget.TextView)1 AHBottomNavigation (com.aurelhubert.ahbottomnavigation.AHBottomNavigation)1 AHBottomNavigationAdapter (com.aurelhubert.ahbottomnavigation.AHBottomNavigationAdapter)1 AHBottomNavigationItem (com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem)1