From 47173f6b3f460e39df5d52d3a5d43c2d75a4527f Mon Sep 17 00:00:00 2001 From: Nick Butcher Date: Fri, 6 Nov 2015 16:20:41 +0000 Subject: [PATCH] Reduce elevation when dismissing search. --- app/src/main/java/io/plaidapp/ui/SearchActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/io/plaidapp/ui/SearchActivity.java b/app/src/main/java/io/plaidapp/ui/SearchActivity.java index 207771f54..d1abca674 100644 --- a/app/src/main/java/io/plaidapp/ui/SearchActivity.java +++ b/app/src/main/java/io/plaidapp/ui/SearchActivity.java @@ -310,6 +310,14 @@ public void onAnimationEnd(Animator animation) { android.R.interpolator.fast_out_linear_in)) .setListener(null) .start(); + if (searchToolbar.getZ() != 0f) { + searchToolbar.animate() + .z(0f) + .setDuration(600L) + .setInterpolator(AnimationUtils.loadInterpolator(this, + android.R.interpolator.fast_out_linear_in)) + .start(); + } // if we're showing search results, circular hide them if (resultsContainer.getHeight() > 0) {