質問

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