2012-01-03 74 views

回答

0

您将需要创建一个基于另一个主题(或从头创建一个)。像这样将在资源定义你的主题:

<?xml version="1.0" encoding="utf-8"?> 
<resources>  
    <style name="Base" parent="@android:style/Theme.Light.NoTitleBar"> 
     <item name="android:background">@android:color/white</item>    
    </style> 
</resources> 

然后,你需要将其应用到应用程序在你的清单:

<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/Base"> 
+0

您好,我需要的按钮,当我按下设备上的菜单键有白色背景。我的菜单充气器中的每个项目都有黑色,我需要白色,因为我的图标图像是白色的,而且我想混合按钮。 – user1121322 2012-01-03 23:47:26

+0

看到我以前的答案。你发现了什么?你有什么问题吗? – sfratini 2012-01-03 23:57:34