I am developing a Launcher app. I need to detect when the user clicks on the menu button so I display several options (a menu). Well, I found out that there are many devices that don't have a menu button so my app cannot display the menu. Searching in other threads I saw that the solution was to have an Action Bar. This can be good for apps but not for my launcher. Anybody has any hint about this?

有帮助吗?

解决方案

Well, I found out that there are many devices that don't have a menu button so my app cannot display the menu

More importantly, there will be very few devices with an off-screen MENU button going forward, as Google is being more stringent about this with device manufacturers.

Anybody has any hint about this?

Create your own menu UI, opened by your own ImageButton or whatever.

Or, add the action bar to your activity and use it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top