Exemplo n.º 1
0
 public static AppMsg MakeText(Activity context, String text, Style style, View customViw)
 {
     return MakeText(context, text, style, customViw, false);
 }
Exemplo n.º 2
0
 public static AppMsg MakeText(Activity context, String text, Style style, View customeView, View.IOnClickListener clickListener)
 {
     return MakeText(context, text, style, customeView, false, clickListener);
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
0
 public static AppMsg MakeText(Activity context, String text, Style style, float textSize)
 {
     return MakeText(context, text, style, Resource.Layout.sino_appmsg_ui, textSize);
 }
Exemplo n.º 6
0
 public static AppMsg MakeText(Activity context, String text, Style style, float textSize, View.IOnClickListener clickListener)
 {
     return MakeText(context, text, style, Resource.Layout.sino_appmsg_ui, textSize, clickListener);
 }
Exemplo n.º 7
0
 public static AppMsg MakeText(Activity context, int resId, Style style, int layoutId)
 {
     return MakeText(context, context.Resources.GetText(resId), style, layoutId);
 }
Exemplo n.º 8
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);
 }
Exemplo n.º 9
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.SetBackgroundColor(style.BackgroundColor);
            view.Clickable = true;

            TextView tv = view.FindViewById<TextView>(Android.Resource.Id.Message);
            if (textSize > 0)
            {
                tv.SetTextSize(Android.Util.ComplexUnitType.Sp, textSize);
            }
            else
            {
                tv.SetTextSize(Android.Util.ComplexUnitType.Dip, TEXTSIZE);
            }
            tv.Text = text;
            tv.SetTextColor(style.TextColor);

            result.mView = view;
            result.mDuration = style.Duration;
            result.mFloating = floating;

            view.SetOnClickListener(clickListener);
            return result;
        }
Exemplo n.º 10
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);
 }
Exemplo n.º 11
0
 public static AppMsg MakeText(Activity context, String text, Style style, View view, bool floating)
 {
     return MakeText(context, text, style, view, floating, 0);
 }