Add vertical translation to the bottom actionbar animation.

This commit is contained in:
Greyson Parrelli
2021-10-22 16:24:43 -04:00
parent 947f59e81b
commit 7d49c77d1a
5 changed files with 25 additions and 5 deletions

View File

@@ -119,6 +119,10 @@ public final class ViewUtil {
return animateOut(view, getAlphaAnimation(1f, 0f, duration), visibility);
}
public static ListenableFuture<Boolean> animateOut(final @NonNull View view, final @NonNull Animation animation) {
return animateOut(view, animation, View.GONE);
}
public static ListenableFuture<Boolean> animateOut(final @NonNull View view, final @NonNull Animation animation, final int visibility) {
final SettableFuture future = new SettableFuture();
if (view.getVisibility() == visibility) {