urbanairship-core/src/main/java/com/urbanairship/iam/html/HtmlActivity.java
private void crossFade(final View in, final View out) {
        if (in != null) {
            in.animate().alpha(1f).setDuration(200);
        }

        if (out != null) {
            out.animate()
               .alpha(0f)
               .setDuration(200)
               .setListener(new AnimatorListenerAdapter() {
                   @Override
                   public void onAnimationEnd(Animator animation) {
                       out.setVisibility(View.GONE);
                   }
               });
        }
    }
/**
     * Fades a view in while fading another view out.
     *
     * @param in The view to fade in
     * @param out The view to fade out
     */
Fades a view in while fading another view out.
@param in The view to fade in
@param out The view to fade out
Fades a view in while fading another view out . @param in The view to fade in @param out The view to fade out
private void crossFade(final View in, final View out) {
        if (in != null) {
            in.animate().alpha(1f).setDuration(200);
        }
        if (out != null) {
            out.animate()
               .alpha(0f)
               .setDuration(200)
               .setListener(new AnimatorListenerAdapter() {
                   @Override
                   public void onAnimationEnd(Animator animation) {
                       out.setVisibility(View.GONE);
                   }
               });
        }
    }
private void crossFade ( final View in , final View out ) { if ( in != null ) { in . animate ( ) . alpha ( 1f ) . setDuration ( 200 ) ; } if ( out != null ) { out . animate ( ) . alpha ( 0f ) . setDuration ( 200 ) . setListener ( new AnimatorListenerAdapter ( ) { @ Override public void onAnimationEnd ( Animator animation ) { out . setVisibility ( View . GONE ) ; } } ) ; } }
Fades a view in while fading another view out.
Fades a view in while fading another view out .