Android Question Force the menu items font color

Cadenzo

Active Member
Licensed User
Longtime User
On every tested device the font color of menu items (created with Activity.AddMenuItem) is white. But now I got a users screenshot (attached) with black and not good readable color. How can I force it to be white?

After my searching I tryed some things with Manifest editor. But without success. I allready have this layout relevant lines there:
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")

How can I force this color in manifest editor or in code to be white?

Thanks in advance for your help!
 

Attachments

  • WhatsApp Image 2019-04-04 at 16.20.51.jpeg
    WhatsApp Image 2019-04-04 at 16.20.51.jpeg
    101.5 KB · Views: 212

Cadenzo

Active Member
Licensed User
Longtime User
So I replaced the Manifest Editor command:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
with this line:
CreateResourceFromFile(Macro, Themes.DarkTheme)

But this brings complete new behavior to the app. Transparent buttons are no more transparent and what is even worse, the piano keys come to foreground when pressed, which looks not really realistic and was not the case with the old manifest editor line (picture attached).
Any idea, what I could do?
 

Attachments

  • Screenshot_20190404-233539.png
    Screenshot_20190404-233539.png
    46.1 KB · Views: 199
Upvote 0
Top