标题中的动作条图标不显示
问题描述:
您好我想与标题图标添加到我的动作条,但只有图标显示。我创造了这个项目:
Hi I want to add a icon with title to my actionbar, but only the icon is shown. I created this item:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_save"
android:icon="@android:drawable/ic_menu_save"
android:title="@string/menu_save"
android:showAsAction="ifRoom|withText"/>
</menu>
任何人的想法?我也改变了 ifRoom
到总是
,但仍是同样的问题。
Anyone a idea? I also changed ifRoom
to always
but still the same problem..
答
这是发生在ICS,对不对?这似乎是在ICS中的错误
That occurs in ICS, right? This appears to be a bug in ICS