香港专业教育学院一直在寻找全国各地甚至叠加,人们不能似乎发现问题到这一点。 我不能似乎得到的图像和文字在纵向模式下,不管我怎么努力工作,在操作栏菜单项。我甚至试图迫使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)