in java/app/app/src/main/java/com/example/app/NavigationIconClickListener.java [52:72]
public void onClick(View view) {
backdropShown = !backdropShown;
// Cancel the existing animations
animatorSet.removeAllListeners();
animatorSet.end();
animatorSet.cancel();
updateIcon(view);
final int translateY = height -
context.getResources().getDimensionPixelSize(R.dimen.grid_reveal_height);
ObjectAnimator animator = ObjectAnimator.ofFloat(sheet, "translationY", backdropShown ? translateY : 0);
animator.setDuration(500);
if (interpolator != null) {
animator.setInterpolator(interpolator);
}
animatorSet.play(animator);
animator.start();
}