private static AppMsg MakeText(Activity context, string text, Style style, View view, bool floating) { var result = new AppMsg(context); view.SetBackgroundResource(style.Background); var tv = (TextView)view.FindViewById(Android.Resource.Id.Message); tv.Text = text; result.View = view; result.Duration = style.Duration; result.SetFloating(floating); return result; }