Johnathan Au
Johnathan Au

Reputation: 5362

How do I port my menu system to devices with no physical menu button e.g. Nexus?

So I realised I've wasted a lot of time building a menu system that depends on a device with a physical menu button, which works great on all devices bar Nexus.

Right, so given that I've been using the typical onCreateOptionsMenu(Menu menu), onPrepareOptionsMenu(Menu menu) and onOptionsItemSelected(MenuItem item) methods. With the usual XML layout for a menu, as you do. How does one transition to a device that has no menu button?

Upvotes: 2

Views: 79

Answers (1)

user1499731
user1499731

Reputation:

I would recommend ActionBarSherlock. It's backwards-compatible with older versions of Android, and the "action bar" is where you'll want to put your menu or commonly used options.

Upvotes: 1

Related Questions