Вопрос

I'm developing an app both android smartphone and tablet. I'm trying to add the menu button on the actionbar on android tablet (3.x and greater). I read some other questions on stackoverflow (like that: How to force use of overflow menu on devices with menu button ) but it is not what i want to.

at the moment I'm using the title bar to show the menu button, as you can see in this screen: enter image description here

And it's a "good" solution but only for version 3.x, because the version 4.x are both for smartphone and tablet, and i don't want to see the title bar because of esthetic reasons. so I would like to have something like that enter image description here

any suggestions?

Это было полезно?

Решение

This is not possible, except by specifying an android:targetSdkVersion of 10 or less, which at this point in time is not a good idea, as it will make your app look old.

If you do not wish to use an action bar, that is fine, but then you need to create your own menus that are designed to go with your own UI.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top