<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/add_birthday_reminder"
android:alphabeticShortcut="r"
android:title="@string/birthday_add"
android:icon="@*android:drawable/ic_suggestions_add"
android:showAsAction="withText|always" />
</menu>
如下图右上角的加号。
若没有icon就能显示title指定的字符串,若有icon,横屏能全部显示,但竖屏只能显示icon不显示文字,能不能
竖屏时同时显示?
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/add_birthday_reminder"
android:alphabeticShortcut="r"
android:title="@string/birthday_add"
android:icon="@*android:drawable/ic_suggestions_add"
android:showAsAction="withText|always" />
</menu>
如下图右上角的加号。
若没有icon就能显示title指定的字符串,若有icon,横屏能全部显示,但竖屏只能显示icon不显示文字,能不能
竖屏时同时显示?
解决方案 »
- 基于Android平台淘宝网手机客户端实战开发视频教程
- android布局问题
- 小菜一个简单的问题,莫鄙视,求回答,谢谢!
- android开发问题 多路由器的 局域网通信.txt
- webview如何获得页面操作
- 让人很纠结的问题,程序无法运行,大家帮忙看看
- android新手在线求教为什么使用POI jar包的时候报这样的错
- 有人研究过微信的朋友圈怎么实现的么?
- 我用instrumentation模拟按键,怎么可以模拟back,不能模拟home
- 请问 Unhandled Exception: java.io.IOException 这种问题一般是怎么造成的?如何解决?
- 【求救】eclipse环境配置问题
- android中如何后台开启照相机?求高人指点!
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources. -->
<bool name="config_actionMenuItemAllCaps">true</bool>
<!-- Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited. -->
<bool name="config_allowActionMenuItemTextWithIcon">true</bool>