本文介绍了菜单图标不在我的三星Galaxy平板电脑中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我特灵在我的星系平板电脑的菜单来执行的应用程序。这里是code创建菜单:

I am tring to execute an application with a menu in my galaxy tablet. here is the code for creating the menu:

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}

和这里的菜单布局:

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/menu_about"
        android:title="@string/menu_about"
        android:icon="@drawable/ic_about"
    />
    <item android:id="@+id/menu_limt_time_rocord"
        android:title="@string/menu_limt_time_rocord"
        android:icon="@drawable/ic_menu_timer"
    />
</menu>

而在我的手机菜单是由pressing普通菜单按钮显示在我的星系平板菜单按钮不会显示在所有和我不能够在所有打开菜单。

While in my phone the menu is being display by pressing the "ordinary" menu button, in my galaxy tablet the menu button is not displayed at all and I am not able to open the menu at all.

如何显示在我的平板电脑菜单按钮?

在此先感谢

了Kobi

推荐答案

您的菜单和所有是正确的。做一件事,从清单文件中删除targetSDKVersion而只使用&LT;采用-SDK机器人:=的minSdkVersion8/&GT;

You menus and all are correct. DO one thing, remove targetSDKVersion from the manifest file and use only <uses-sdk android:minSdkVersion="8" />.

我觉得这是唯一的问题。现在,在3.0以后就可以看到菜单按钮。

I think this is the only problem. Now on 3.0 onward you can see the menu buttons.

这篇关于菜单图标不在我的三星Galaxy平板电脑中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-09 20:22