我儘量把我的主題我的應用程序,但我不能修復它 - 無法設置我的主題
我看到在白色背景下的白色文字 - 如何在ActionBar
彈出從白到黑改變文字顏色?
這是我的主題:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/material_bg</item>
<item name="colorPrimaryDark">@color/status_bar</item>
<item name="colorAccent">@color/edittext_primary</item>
<item name="android:windowBackground">@color/light_blue</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:textColorPrimaryInverse">@android:color/white</item>
<item name="android:textColorPrimary">@android:color/white</item>
<item name="actionMenuTextColor">@android:color/white</item>
<item name="android:textColorSecondary">@android:color/white</item>
<item name="drawerArrowStyle">@style/WhiteDrawerIconStyle</item>
<item name="textAppearanceLargePopupMenu">@style/myPopupMenuTextAppearanceLarge</item>
<item name="android:textAppearanceLargePopupMenu">@style/myPopupMenuTextAppearanceLarge</item>
<item name="textAppearanceSmallPopupMenu">@style/myPopupMenuTextAppearanceSmall</item>
<item name="android:textAppearanceSmallPopupMenu">@style/myPopupMenuTextAppearanceSmall</item>
<item name="popupMenuStyle">@style/myPopupMenuStyle</item>
<item name="android:popupMenuStyle">@style/myPopupMenuStyle</item>
</style>
<style name="myPopupMenuStyle" parent="@style/Widget.AppCompat.PopupMenu"></style>
<style name="myPopupMenuTextAppearanceSmall" parent="@style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Small">
<item name="android:textColor">#000000</item>
</style>
<style name="myPopupMenuTextAppearanceLarge" parent="@style/TextAppearance.AppCompat.Light.Widget.PopupMenu.Large">
<item name="android:textColor">#000000</item>
</style>
你已經使用工具欄(android.support.v7.widget.Toolbar)在你的活動佈局? –
@DhawalSodhaParmar是的,我使用工具欄 – Artem
然後在工具欄中更改彈出式主題 - >應用程序:popupTheme =「@ style/ThemeOverlay.AppCompat.Light」或任何你想要的 –