开发者

How do I control the soft menu button in Honeycomb?

I have an app in which I want to turn the menu button off (I'm picking up someone else's project and am not sure what开发者_如何学C is provoking the menu button to appear)... it doesn't *do anything. Is there a way to turn off that icon manually? Or do I have to hunt down the reason for its being displayed in the first place? (please no flak for looking for a workaround, obviously in an ideal world I'd be familiar enough with the code to know why the menu button is being generated, but time is of the essence and since it's a non functional button, I see no harm in just forcing it to go away).

TIA


Based on a suggestion here:

http://groups.google.com/group/android-developers/browse_thread/thread/c4b1b835060bd93f/4ed12919b4147008

I managed to get rid of the menu button on Honeycomb by setting my targetSdkVersion to 11 in my manifest:

android:targetSdkVersion="11"

If you do end up implementing some menu options, I believe they will end up being put into the little widget at the top right (don't know what it's called).


Is there a way to turn off that icon manually?

Don't have an options menu -- IOW, don't implement onCreateOptionsMenu() or onPrepareOptionsMenu(). Having an options menu is the only thing that causes the options menu button to appear on Honeycomb, AFAIK.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜