Tôi đang cố gắng để skin menu tùy chọn trên Android. Tôi đã thay đổi màu nền với chủ đề tùy chỉnh, nhưng tôi không thể thay đổi màu văn bản vì lý do nào đó.Trình đơn tùy chọn da Android
My Theme
<style name="default" parent="@android:style/Theme.NoTitleBar">
<!-- Menu panel colors -->
<item name="android:panelBackground">@color/optionsMenuBackgroundColor</item>
<item name="android:panelFullBackground">@color/optionsMenuBackgroundColor</item>
<!-- Menu item colors -->
<item name="android:itemTextAppearance">@style/OptionsMenuFont</item>
</style>
Phong cách của tôi cho phông chữ trình đơn tùy chọn
<style name="OptionsMenuFont" parent="@android:style/TextAppearance.Widget.IconMenu.Item">
<item name="android:textColor">@drawable/menu_item_font</item>
</style>
drawable của tôi cho bộ chọn nút màu menu_item_font.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Put other state colors up top -->
<item android:color="@color/optionsMenuTextColor" />
</selector>
Đó màu chỉ là một hex color # c4c4c4
Tôi đang thiếu gì ở đây?
Bạn đã thử '- # c4c4c4
'? –
Barney
Tôi hoàn toàn quên về chủ đề này. Tôi thậm chí không nhớ dự án này là gì. Tôi có nên xóa câu hỏi này không? – smokingoyster