我想将在OnCreateMenuOptions活动中创建的所有菜单项的默认菜单充气机背景颜色设置为白色吗?
You will need to create a Theme based on another one (Or create one from scratch). Something like this will define your theme in the resources:
<?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>
Then you need to apply it to the application in your manifest:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/Base">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.