1
I’m having a problem creating an animation. I have a button in the action bar that when clicking on it, either displays or hides a menu bar. So far it is displaying or hiding using GONE and VISIBLE. I would like to add an animation, this menu is just below the action bar, so by clicking to hide the menu, I would like it to move up, hiding it. By clicking to show the menu, I would like it to move down, showing you. Another problem is that the rest of the layout should follow the movement that is chosen. Does anyone know an example for this problem? Thank you!
Douglas, could you use the
ViewPropertyAnimator
, which is quite simple, but requires your minimum API to be 12. You could follow this tutorial own Android Developers blog.– Wakim
I tried, I couldn’t get the animation done right...
– Douglas Fornaro
It could include the code you’ve done so far?
– Wakim