动作条带图标和文字在纵向模式 [英] ActionBar with icon and text in portrait mode
本文介绍了动作条带图标和文字在纵向模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
香港专业教育学院一直在寻找全国各地甚至叠加,人们不能似乎发现问题到这一点。 我不能似乎得到的图像和文字在纵向模式下,不管我怎么努力工作,在操作栏菜单项。我甚至试图迫使Android的纵向 我的xml:
Ive been searching all over even stack, people cant seem to find the problem to this. I cant seem to get an image and text to work in portrait mode on menu items in the action bar no matter what I try. I even tried to force android portrait orientation my xml:
<item android:id="@+id/menu_save"
android:icon="@drawable/content"
android:orderInCategory="100"
android:title="New Group"
android:showAsAction="withText|always" />
有没有人想通了这一点?
has anyone figured this out?
推荐答案
从本机动作条的config.xml文件:
From the config.xml file of the native ActionBar:
值:
<bool name="config_allowActionMenuItemTextWithIcon">false</bool>
价值观480dp:
values-480dp:
<bool name="config_allowActionMenuItemTextWithIcon">true</bool>
要回答你的问题:
不,你不能这样做,如果设备的宽度比480dp小。 (除非你想创建一个自定义ROM与改装成的框架)
No you can't do that, if the devices width is smaller than 480dp. (Unless you want to create a custom rom with a modded framework)
这篇关于动作条带图标和文字在纵向模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文