car/src/main/java/androidx/car/app/CarListDialog.java
private void removeTitleElevationWithAnimation() {
        ValueAnimator elevationAnimator =
                ValueAnimator.ofFloat(mTitleView.getElevation(), 0f);
        elevationAnimator
                .setDuration(ANIMATION_DURATION_MS)
                .addUpdateListener(
                        animation -> mTitleView.setElevation((float) animation.getAnimatedValue()));
        elevationAnimator.start();
    }
/** Animates the removal of elevation from the title view. */
Animates the removal of elevation from the title view.
Animates the removal of elevation from the title view .
private void removeTitleElevationWithAnimation() {
        ValueAnimator elevationAnimator =
                ValueAnimator.ofFloat(mTitleView.getElevation(), 0f);
        elevationAnimator
                .setDuration(ANIMATION_DURATION_MS)
                .addUpdateListener(
                        animation -> mTitleView.setElevation((float) animation.getAnimatedValue()));
        elevationAnimator.start();
    }
private void removeTitleElevationWithAnimation ( ) { ValueAnimator elevationAnimator = ValueAnimator . ofFloat ( mTitleView . getElevation ( ) , 0f ) ; elevationAnimator . setDuration ( ANIMATION_DURATION_MS ) . addUpdateListener ( animation -> mTitleView . setElevation ( ( float ) animation . getAnimatedValue ( ) ) ) ; elevationAnimator . start ( ) ; }
Animates the removal of elevation from the title view.
Animates the removal of elevation from the title view .