add function to set animation for button showing and hiding. calling ActionButton.setAnimation(ActionButtonAnimation) will do this, default is slide up from bottom