How do I create two actions on one button

Chloé Zhao shared this question 4 years ago

I'm trying to create an event of opening a side-menu on Android interface.

What I want to achieve is that to hide the side menu when page is loaded -> tap the "menu" button and show the side menu group (it should stay on the page till I make another interaction) -> tap the "menu" button again to hide the side menu.

Somehow I cannot find a satisfied way to created these four actions. Help!