user1903021 user1903021 - 1 year ago 160
Android Question

Android floating Menu Key button for phones without menu key?

I'm trying to get my floating button to work as the menu key for android phones without menu keys also cause one of my apps required a menu key to display the menu list, now my problem is that i don't know how to create the on click function to bring out the menu using the code from the following location.

Any help is appreciated.
enter image description here

Answer Source

It was simple lol

fabButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download