File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
lib/java/com/google/android/material/search Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ class SearchViewAnimationHelper {
6868 private static final long SHOW_CONTENT_ALPHA_DURATION_MS = 150 ;
6969 private static final long SHOW_CONTENT_ALPHA_START_DELAY_MS = 75 ;
7070 private static final long SHOW_CONTENT_SCALE_DURATION_MS = SHOW_DURATION_MS ;
71+ private static final long SHOW_SCRIM_ALPHA_DURATION_MS = 100 ;
7172
7273 // Constants for hide collapse animation
7374 private static final long HIDE_DURATION_MS = 250 ;
@@ -328,6 +329,7 @@ private Animator getScrimAlphaAnimator(boolean show) {
328329
329330 ValueAnimator animator = ValueAnimator .ofFloat (0 , 1 );
330331 animator .setDuration (show ? SHOW_DURATION_MS : HIDE_DURATION_MS );
332+ animator .setStartDelay (show ? SHOW_SCRIM_ALPHA_DURATION_MS : 0 );
331333 animator .setInterpolator (ReversableAnimatedValueInterpolator .of (show , interpolator ));
332334 animator .addUpdateListener (MultiViewUpdateListener .alphaListener (scrim ));
333335 return animator ;
You can’t perform that action at this time.
0 commit comments