Forum Xamarin Xamarin.Android

Changing the Foreground Colour for Context Menu


How to change the foreground colour of context menu items. I created a axml layout for the menu,

<?xml version="1.0" encoding="utf-8"?>

<---This is also not working. <item android:id="@+id/mnuFindXXXX" android:title="Find Elector by Barcode" />

And following is my code in Activity for overriding the ContextMenu

public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo)
base.OnCreateContextMenu(menu, v, menuInfo);
menu.SetHeaderTitle("How do you want to confirm ?");
MenuInflater.Inflate(Resource.Layout.XXX, menu);

And still not working. Kindly let me know whether it is a issue with monodroid or it can be fixed as the background is black in color and the context menu text is also black in colour which makes the user accessibility quite worse.

Thanks in Advance.

Sign In or Register to comment.