public static AppMsg MakeText(Activity context, int resId, Style style, int layoutId) { return MakeText(context, context.Resources.GetText(resId), style, layoutId); }
private static AppMsg MakeText(Activity context, String text, Style style, View view, bool floating, float textSize, View.IOnClickListener clickListener) { AppMsg result = new AppMsg(context); view.SetBackgroundResource(style.Background); view.Clickable = true; TextView tv = view.FindViewById<TextView>(Android.Resource.Id.Message); if (textSize > 0) { tv.SetTextSize(Android.Util.ComplexUnitType.Sp, textSize); } tv.Text = text; result.mView = view; result.mDuration = style.Duration; result.mFloating = floating; view.SetOnClickListener(clickListener); return result; }
public static AppMsg MakeText(Activity context, String text, Style style, View view, bool floating, View.IOnClickListener clickListener) { return MakeText(context, text, style, view, floating, 0, clickListener); }
public static AppMsg MakeText(Activity context, int resId, Style style, View customView, bool floating) { return MakeText(context, context.Resources.GetText(resId), style, customView, floating); }
public static AppMsg MakeText(Activity context, String text, Style style, View customeView, View.IOnClickListener clickListener) { return MakeText(context, text, style, customeView, false, clickListener); }
public static AppMsg MakeText(Activity context, String text, Style style, View view, bool floating) { return MakeText(context, text, style, view, floating, 0); }
public static AppMsg MakeText(Activity context, String text, Style style, View customViw) { return MakeText(context, text, style, customViw, false); }
public static AppMsg MakeText(Activity context, String text, Style style, int layoutId, float textSize) { LayoutInflater inflate = context.LayoutInflater; View v = inflate.Inflate(layoutId, null); return MakeText(context, text, style, v, true, textSize); }
public static AppMsg MakeText(Activity context, String text, Style style, int layoutId, View.IOnClickListener clickListener) { LayoutInflater inflate = context.LayoutInflater; View v = inflate.Inflate(layoutId, null); return MakeText(context, text, style, v, true); }
public static AppMsg MakeText(Activity context, String text, Style style, float textSize, View.IOnClickListener clickListener) { return MakeText(context, text, style, Resource.Layout.app_msg, textSize, clickListener); }
public static AppMsg MakeText(Activity context, String text, Style style, float textSize) { return MakeText(context, text, style, Resource.Layout.app_msg, textSize); }