如何更改为“剪切/复制/粘贴"弹出菜单的文本颜色 [英] How to change to text colour of the Cut/Copy/Paste popup menu
本文介绍了如何更改为“剪切/复制/粘贴"弹出菜单的文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的styles.xml中包含以下内容
I have the following in my styles.xml
<style name="dialog_style" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="colorAccent">#ffaaaa00</item>
<item name="android:background">#ff444400</item>
<item name="android:textColorPrimary">#ffa25600</item>
</style>
(可怕的颜色仅用于测试!)
(The horrible colours are for testing only!)
这给出了以下内容
我想要的是深色/黑色背景,但是当我这样做时,文本不可读.
What I want is a dark/black background but when I do that, the text is unreadable.
问:如何更改剪切",复制" ...的文本颜色?
Q: How do I change the text colour of "Cut", "Copy"...?
tia, 凯文
推荐答案
我认为这是比user3247782更好的解决方案,
I think it's a little bit better solution than user3247782's,
<style name="CustomAlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert">
...
<item name="android:popupBackground">@android:color/transparent</item>
</style>
这篇关于如何更改为“剪切/复制/粘贴"弹出菜单的文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文