我需要更改上下文菜单中文本的颜色。我尝试使用@style,但不起作用。我检查了帖子:Setting Application theme textColor to white causes Context Menu item text to be white (invisible) , cause de doubt is simillar,但没有不工作。有人可以帮助我或告诉我不可能改变颜色吗?
谢谢。
最佳答案
<style name= "Theme.Blundell.Light" parent="@android:style/Theme.NoTitleBar">
<item name="android:windowBackground">@drawable/background_light</item>
<item name="android:textViewStyle">@style/Widget.TextView.Black</item>
</style>
<style name="Widget.TextView.Black" parent="@android:style/Widget.TextView">
<item name="android:textColor">#000000</item>
</style>
关于Android ContextMenu 如何设置TextColor 和背景颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17915337/