If you use the last version of WhatsApp you will notice that if you long click a textbox in a chat, then the menu icons on the toolbar will change with a nice rotating animation.
How could I reproduce that effect? I know I should invalidate the menu but not how to make the animation.
Toolbar
.Example:
Note
R.id.action_add_item
is theid
attribute of theMenuItem
.