libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionView.java
private void initAnimations() {
    Context context = getContext();
    rerouteSlideDownTop = AnimationUtils.loadAnimation(context, R.anim.slide_down_top);
    rerouteSlideUpTop = AnimationUtils.loadAnimation(context, R.anim.slide_up_top);

    Animation fadeIn = new AlphaAnimation(0, 1);
    fadeIn.setInterpolator(new DecelerateInterpolator());
    fadeIn.setDuration(300);

    Animation fadeOut = new AlphaAnimation(1, 0);
    fadeOut.setInterpolator(new AccelerateInterpolator());
    fadeOut.setStartOffset(1000);
    fadeOut.setDuration(1000);

    fadeInSlowOut = new AnimationSet(false);
    fadeInSlowOut.addAnimation(fadeIn);
    fadeInSlowOut.addAnimation(fadeOut);
  }
/**
   * Initializes all animations needed to show / hide views.
   */
Initializes all animations needed to show / hide views.
Initializes all animations needed to show / hide views .
private void initAnimations() {
    Context context = getContext();
    rerouteSlideDownTop = AnimationUtils.loadAnimation(context, R.anim.slide_down_top);
    rerouteSlideUpTop = AnimationUtils.loadAnimation(context, R.anim.slide_up_top);
    Animation fadeIn = new AlphaAnimation(0, 1);
    fadeIn.setInterpolator(new DecelerateInterpolator());
    fadeIn.setDuration(300);
    Animation fadeOut = new AlphaAnimation(1, 0);
    fadeOut.setInterpolator(new AccelerateInterpolator());
    fadeOut.setStartOffset(1000);
    fadeOut.setDuration(1000);
    fadeInSlowOut = new AnimationSet(false);
    fadeInSlowOut.addAnimation(fadeIn);
    fadeInSlowOut.addAnimation(fadeOut);
  }
private void initAnimations ( ) { Context context = getContext ( ) ; rerouteSlideDownTop = AnimationUtils . loadAnimation ( context , R . anim . slide_down_top ) ; rerouteSlideUpTop = AnimationUtils . loadAnimation ( context , R . anim . slide_up_top ) ; Animation fadeIn = new AlphaAnimation ( 0 , 1 ) ; fadeIn . setInterpolator ( new DecelerateInterpolator ( ) ) ; fadeIn . setDuration ( 300 ) ; Animation fadeOut = new AlphaAnimation ( 1 , 0 ) ; fadeOut . setInterpolator ( new AccelerateInterpolator ( ) ) ; fadeOut . setStartOffset ( 1000 ) ; fadeOut . setDuration ( 1000 ) ; fadeInSlowOut = new AnimationSet ( false ) ; fadeInSlowOut . addAnimation ( fadeIn ) ; fadeInSlowOut . addAnimation ( fadeOut ) ; }
Initializes all animations needed to show / hide views.
Initializes all animations needed to show / hide views .