Android Question Force the menu items font color

skrjabin

Active Member
Licensed 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

skrjabin

Active Member
Licensed 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

Top