Title for icon in actionbar is not shown

≯℡__Kan透↙ 提交于 2019-12-12 04:14:18

问题


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>

Anyone a idea? I also changed ifRoom to always but still the same problem..


回答1:


That occurs in ICS, right? This appears to be a bug in ICS

https://code.google.com/p/android/issues/detail?id=30180



来源:https://stackoverflow.com/questions/12511348/title-for-icon-in-actionbar-is-not-shown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!