Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change to text colour of the Cut/Copy/Paste popup menu

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!)

This gives the following

enter image description here

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, Kevin

like image 443
Kevin Gilbert Avatar asked Nov 08 '22 18:11

Kevin Gilbert


1 Answers

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>
like image 180
maff91 Avatar answered Nov 14 '22 23:11

maff91