0

I'm developing an app and testing it directly on my device (HTC One S). Everything is fine until I run it my device (or with higher resolution), but if I try to run the app on another device with a low resolution, I cannot see the action button on the top right.

This is how the UI should be (and it's on my device):

enter image description here

And this is how it appears on devices with lower resolution:

enter image description here

I tried even with Eclipse virtual device, by setting up a 240x320 or 320x480 or 480x800 but nothing... I still don't see the action buttons

I looked for similar questions, the only one I found is this one: Actions Buttons in Android not visible , but does not work. Cannot figure out what's the trick!

Cœur
  • 37,241
  • 25
  • 195
  • 267
roiko
  • 33
  • 6

1 Answers1

0
<item android:id="@+id/action_settings"
        android:title="@string/action_settings"
        android:orderInCategory="100"
        android:showAsAction="always" />

Make sure your menu item has the 'showAsAction' set to 'always'. Failing that, ensure the smaller device your using does not have a hardware menu button enabled.

Broak
  • 4,161
  • 4
  • 31
  • 54
  • That was the point! The real device with low resolution which I installed my app on has the hardware menu button! I feel a little fool :)Thank you guys! – roiko Nov 28 '14 at 07:58