如何调整系统自带“选项菜单”布局 在android系统中,用户按下"MENU"键就会在屏幕下方显示选项菜单,系统的每层界面,包括自带的一些APP都能显示选项菜单,下面还带文字标签,我如何把菜单中的图片和文字标签的距离拉远一点,我没有找到有关选项菜单的XML文件?哪位知道XML在哪儿,或者有其他的方法来重新布局“选项菜单” 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你在系统的layout下面找 好像iconmenu的就1、2个你是要修改ldpi的布局吗? 文字标签上端会被遮盖住了这个好像只有在2.1的ldpi 而且是中文时 才会出现的我是把菜单的高度调高了 你是通过XML文件来调高菜单的高度吗,是否是screen_title_icons.xml,我改了之后一点反应都没有 终于能上图了,上面就是ICON遮住了title的实例,不知道怎么把图片拉上一点,以至于文字内容不被遮住呢??? 修改的地方在: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个项目 关于android蓝牙打印的问题 有谁知道这个控件的实现原理吗? 在绝对定位中,如何在java代码中改变图片的x和y坐标 Android下搭建WebService服务 android如何截屏,需要截外部应用的屏幕????????????????? 如何测量wifi强度 Android旧版本问题 android.os.NetworkOnMainThreadException Android中surfaceView控件问题 求大神告知Android Studio 初次运行无法成功安装Gradle的解决方法 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个项目