I've got two menu items, however one of them becomes inaccessible in portrait mode as there isn't room on the actionbar. I'm assuming it should get moved into an options menu accessible at the bottom of the activity and accessed by the hardware menu button on my gingerbread device, but this doesn't happen.
If I put my device into landscape both menu items become visible on the actionbar. Any ideas how I can fix this?
MainActivity.java
getSupportActionBar()
.setDisplayShowCustomEnabled(true);
getSupportActionBar().setCustomView(R.layout.actionbar_main);
getSupportActionBar().setIcon(R.drawable.title);
getSupportActionBar().setDisplayShowTitleEnabled(false);
menu.xml
<item android:id="@+id/photos"
android:title="Collections"
android:icon="@drawable/content_picture"
android:showAsAction="ifRoom"
/>
<item android:id="@+id/contact"
android:title="Contact"
android:icon="@drawable/content_email"
android:showAsAction="ifRoom"
/>