How to run a simple link with the following command?
<TextView
android:text="text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView1" />
TextView textView = FindViewById<TextView>(Resource.Id.textView1);
textView.TextFormatted = Android.Text.Html.FromHtml("https://www.google.com");
textView.MovementMethod = Android.Text.Method.LinkMovementMethod.Instance;
These work:
textView.TextFormatted = Android.Text.Html.FromHtml("<a href=\"" + "https://www.google.com" + "\">google</a>");
textView.TextFormatted = Android.Text.Html.FromHtml("<a href=\"" + "https://www.google.com" + "\">https://www.google.com</a>");
This also does not work:
<TextView
android:text="text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:id="@+id/textView1" />
textView.TextFormatted = Android.Text.Html.FromHtml("<u>" + "https://www.google.com" + "</u>");