문제

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