开发者

Menu Item Showing Image but hiding text. Honeycomb Android?

I use the below xml file to inflate the menu in my application. This works fine when I test it in my phone. How ever when I test it in my xoom Honeycomb tablet I cannot see the text of the menu Item "menu_addnote" and "menu_addfolder". It shows only the image and the text gets hidden below which is not visible on the screen. How to I specify the drawable size of the menu icons in tablets or phones? Please help me with this. Thank you.

<menu xmlns:android="http://schema开发者_JAVA百科s.android.com/apk/res/android">
    <item android:id="@+id/menu_addnote"
          android:icon="@drawable/add"
          android:title="@string/menu_add" />
    <item android:id="@+id/menu_addfolder"
          android:icon="@drawable/folder"
          android:title="@string/menu_folder" />
    <item android:id="@+id/menu_sort"
          android:icon="@drawable/sync"
          android:title="@string/menu_sort" />
    <item android:id="@+id/menu_search"
          android:icon="@drawable/search"
          android:title="@string/menu_search" />
    <item android:id="@+id/menu_settings"
          android:icon="@drawable/settings"
          android:title="@string/menu_settings" />
    <item android:id="@+id/menu_sync"
          android:icon="@drawable/sync"
          android:title="@string/menu_sync" />

</menu>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜