Example #1
0
 public static AppMsg MakeText(Activity context, int resId, Style style, int layoutId)
 {
     return MakeText(context, context.Resources.GetText(resId), style, layoutId);
 }
Example #2
0
        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;
        }
Example #3
0
 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);
 }
Example #4
0
 public static AppMsg MakeText(Activity context, int resId, Style style, View customView, bool floating)
 {
     return MakeText(context, context.Resources.GetText(resId), style, customView, floating);
 }
Example #5
0
 public static AppMsg MakeText(Activity context, String text, Style style, View customeView, View.IOnClickListener clickListener)
 {
     return MakeText(context, text, style, customeView, false, clickListener);
 }
Example #6
0
 public static AppMsg MakeText(Activity context, String text, Style style, View view, bool floating)
 {
     return MakeText(context, text, style, view, floating, 0);
 }
Example #7
0
 public static AppMsg MakeText(Activity context, String text, Style style, View customViw)
 {
     return MakeText(context, text, style, customViw, false);
 }
Example #8
0
 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);
 }
Example #9
0
 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);
 }
Example #10
0
 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);
 }
Example #11
0
 public static AppMsg MakeText(Activity context, String text, Style style, float textSize)
 {
     return MakeText(context, text, style, Resource.Layout.app_msg, textSize);
 }