[英]Android - set default menu inflater color to white?
我想將在OnCreateMenuOptions活動中創建的所有菜單項的默認菜單充氣機背景顏色設置為白色嗎?
您將需要基於另一個主題創建主題(或從頭開始創建主題)。 這樣的事情將在資源中定義您的主題:
<?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">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.