是否有可能使Android的选项菜单背景非透明? [英] Is it possible to make the Android options menu background non-translucent?

查看:222
本文介绍了是否有可能使Android的选项菜单背景非透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

选项菜单中有一个半透明的背景,我想使固体和非透明。有什么办法?

The options menu has a translucent background and I would like to make it solid and non-transparent. Is there a way?

推荐答案

试试这个:

<style name="MyTheme" parent="android:Theme">
     <item name="android:panelFullBackground">{your color or drawable}</item>
</style>

此外,见:

  • http://code.google.com/p/android/issues/detail?id=4441
  • Change the background color of the options menu
  • Completely overriding menu panel: Android MenuItem Toggle Button

这篇关于是否有可能使Android的选项菜单背景非透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆