'When using MSIconicDrawable, here I have the option to change the color of the icon
Dim IconHome As MSIconicDrawable : IconHome.Initialize("gmd_home") : IconHome.Color = 0xffff4081
'In this case how do I change the color of the icon ? ie TextToBitmap(Chr(0xF0EE), 30)
Dim oBitMap As BitmapDrawable
oBitMap.Initialize(TextToBitmap(Chr(0xF0EE), 30))
NavDrawer.NavigationView.Menu.AddWithGroup2(1, 1, 1, "Home", oBitMap ).Checked = True
NavDrawer.NavigationView.Menu.AddWithGroup(1, 2, 2, "My Menu", TextToBitmap(Chr(0xF209), 30) ).Checked = True
Sub TextToBitmap (s As String, FontSize As Float) As Bitmap
Dim bmp As Bitmap
bmp.InitializeMutable(32dip, 32dip)
Dim cvs As Canvas
cvs.Initialize2(bmp)
Dim h As Double = cvs.MeasureStringHeight(s, Typeface.FONTAWESOME, FontSize)
'Tried changing the color in the next line, but no effect on the final image. It is appearing as grey only
cvs.DrawText(s, bmp.Width / 2, bmp.Height / 2 + h / 2, Typeface.FONTAWESOME, FontSize, Colors.White, "CENTER")
Return bmp
End Sub