How to remove the underline from the hyperlink textview

Anishbhat.1253Anishbhat.1253 INMember
edited January 2018 in Xamarin.Android

How to remove the underline from the hyperlink ?

Best Answers

  • Accepted Answer

    Hi Ahsan_Siddique,
    For example Home is the hyperlink so by default it will be having the underline so i want to remove the underline and just want to show Home.
    I have used textview inside that there is a link, When i click on that it goes to the webpage. To create a link i used anchor tag of html.

Answers

  • Anishbhat.1253Anishbhat.1253 INMember
    Accepted Answer

    Hi Ahsan_Siddique,
    For example Home is the hyperlink so by default it will be having the underline so i want to remove the underline and just want to show Home.
    I have used textview inside that there is a link, When i click on that it goes to the webpage. To create a link i used anchor tag of html.

  • sumitmishrasumitmishra Member ✭✭

    Any one got solution for this...?
    We have also the same problem....hyperlink display with underline in textview. We are using this code but underline issue not solved.

    var key1 = new NSMutableString ();
    key1.SetString (new NSString ("NSColor"));
    var value1 = UIColor.Blue;

    var key2 = new NSMutableString ();
    key2.SetString (new NSString ("NSUnderline"));
    var value2 = new NSNumber(0);

    var dict = new NSDictionary (key1, value1, key2, value2);

    cell.TextView.WeakLinkTextAttributes = dict;

Sign In or Register to comment.