Ejemplo n.º 1
0
 public void SetTextInfo(SuperTextView showMore)
 {
     try
     {
         if (showMore != null)
         {
             showMore.AddAutoLinkMode(new[] { StTools.XAutoLinkMode.ModePhone, StTools.XAutoLinkMode.ModeEmail, StTools.XAutoLinkMode.ModeHashTag, StTools.XAutoLinkMode.ModeUrl, StTools.XAutoLinkMode.ModeMention, StTools.XAutoLinkMode.ModeCustom });
             showMore.SetPhoneModeColor(Color.ParseColor("#008000"));
             showMore.SetEmailModeColor(Color.ParseColor("#3e0e4c"));
             showMore.SetHashtagModeColor(Color.ParseColor("#0000ff"));
             showMore.SetUrlModeColor(Color.ParseColor("#df541e"));
             showMore.SetMentionModeColor(Color.ParseColor(AppSettings.MainColor));
             //showMore.EnableUnderLine();
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Ejemplo n.º 2
0
 public void SetTextInfo(SuperTextView showMore)
 {
     try
     {
         if (showMore != null)
         {
             showMore.AddAutoLinkMode(new[] { StTools.XAutoLinkMode.ModePhone, StTools.XAutoLinkMode.ModeEmail, StTools.XAutoLinkMode.ModeHashTag, StTools.XAutoLinkMode.ModeUrl, StTools.XAutoLinkMode.ModeMention, StTools.XAutoLinkMode.ModeCustom });
             showMore.SetPhoneModeColor(new Color(ContextCompat.GetColor(Context, Resource.Color.AutoLinkText_ModePhone_color)));
             showMore.SetEmailModeColor(new Color(ContextCompat.GetColor(Context, Resource.Color.AutoLinkText_ModeEmail_color)));
             showMore.SetHashtagModeColor(new Color(ContextCompat.GetColor(Context, Resource.Color.AutoLinkText_ModeHashtag_color)));
             showMore.SetUrlModeColor(new Color(ContextCompat.GetColor(Context, Resource.Color.AutoLinkText_ModeUrl_color)));
             showMore.SetMentionModeColor(Color.ParseColor(AppSettings.MainColor));
             //showMore.EnableUnderLine();
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }