在android系统中,用户按下"MENU"键就会在屏幕下方显示选项菜单,系统的每层界面,包括自带的一些APP都能显示选项菜单,下面还带文字标签,我如何把菜单中的图片和文字标签的距离拉远一点,我没有找到有关选项菜单的XML文件?哪位知道XML在哪儿,或者有其他的方法来重新布局“选项菜单”
解决方案 »
- 在用android日志的时候老是弹出一个窗口,内容为:"Copy" did not complete normally. Please see the log
- 获取google android开源项目代码出错
- 【100分】急需帮助,关于获取资源文件的问题
- 问题:使用eclipse开发android源码
- 从Android2.3.2源码创建文件系统
- PC为Server端,手机为Client端,SOCKET如何填写IP问题
- 如何显示一帧视频,除了bitmap之外的方法.
- 安卓基于socket的服务器通信为什么不可以?
- 手机间的socket通信。出现莫名其妙的问题
- android 中休眠问题?
- 432x240屏幕界面没铺满?
- 当上传照片时如何给它重命名
你是要修改ldpi的布局吗?
这个好像只有在2.1的ldpi 而且是中文时 才会出现的
我是把菜单的高度调高了
framework-res.apk\res\values\styles.xml
查找这行以便设置文字大小是否加粗 颜色调用的属性:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textSize">14.0sp</item>
<item name="textStyle">normal</item>
<item name="textColor">@color/bright_foreground_dark</item>
</style>我是通过改变textSize大小:14.0sp来完美解决的
framework-res.apk\res\layout-land\icon_menu_layout.xml
这个文件所描述的:
<com.android.internal.view.menu.IconMenuView android:id="@id/icon_menu" android:layout_width="fill_parent" android:layout_height="wrap_content" android:rowHeight="66.0dip" android:maxRows="2" android:maxItemsPerRow="6" android:maxItems="6"
xmlns:android="http://schemas.android.com/apk/res/android" />看含义应该是rowHeight="66.0dip" 每行的高度66dip然后:
android:rowHeight="66.0dip" android:maxRows="2" android:maxItemsPerRow="6" android:maxItems="6"
最大2行,每行的最大项目2个,最多6个项目