Xamarin android Toast View Rerun Null.
Here is the code snippet
Toast t = Toast.MakeText(context, message, shorOrLong);
Color c = color;
ColorMatrixColorFilter CM = new ColorMatrixColorFilter(new float[]
{
0,0,0,0,c.R,
0,0,0,0,c.G,
0,0,0,0,c.B,
0,0,0,1,0
});
t.View.Background.SetColorFilter(CM);
t.Show();
here t.View is null.
for that I am getting null reference exception. Any kind of help highly appreciated.