Android Question Showing Overflow Menu with a Hardware Home Button

doncx

Active Member
Licensed User
Longtime User
I need to show the items on an overflow menu but have discovered (as many before me also have) that when the tablet has a hardware-based home button, then the 3-dot overflow menu button is not displayed and access to the items in it is cut off.

I found this helpful link to determining the presence of a hardware home button:

https://www.b4x.com/android/forum/threads/detect-hardware-button-exists-or-not.44181/#content

But it doesn't address how then to programatically make the overflow menu appear.

How can I do that?

I found this thread on StackOverflow, but don't know how to apply it to b4a:

http://stackoverflow.com/questions/...nu-item-in-action-bar-without-using-a-hack-me

Any assistance would be appreciated!
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
Upvote 0

doncx

Active Member
Licensed User
Longtime User
You can do it by following this tutorial...
https://www.b4x.com/android/forum/t...-2-using-the-appcompat-library.48424/#content
I have the overflow (three dots) showing on my old Galaxy S3 which has a hardware menu button. If the dots are pressed the menu displays near the top of the screen and if there hardware button is pressed the menu shows at the bottom of the screen.
Thanks for your suggestion, Random. In the end, I think I'll just bite the bullet and move to an Action Bar. My app is using old standards, so using the Action Bar will update it and retain simplicity. Nonetheless, thanks for pointing me to the AppCompat library. I'll keep it in mind for possible future needs.
 
Upvote 0
Top