user1903021 user1903021 - 5 months ago 26
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.

https://gist.github.com/Jogan/9def6110edf3247825c9

Any help is appreciated.
enter image description here

Answer

It was simple lol

fabButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) 
        {
            openOptionsMenu();
        }