Text view html link not clickable [duplicate]android: html in textview with link clickableHow do I center text horizontally and vertically in a TextView?Is there an easy way to add a border to the top and bottom of an Android View?How to display HTML in TextView?How do I make links in a TextView clickable?How do you change text to bold in Android?Auto Scale TextView Text to Fit within BoundsAndroid “Only the original thread that created a view hierarchy can touch its views.”Place cursor at the end of text in EditTextHow to set the part of the text view is clickableCannot display HTML string

Bob has never been a M before

Is there a good way to store credentials outside of a password manager?

Can a Bard use an arcane focus?

Would it be legal for a US State to ban exports of a natural resource?

Golf game boilerplate

Science Fiction story where a man invents a machine that can help him watch history unfold

Why are on-board computers allowed to change controls without notifying the pilots?

Visiting the UK as unmarried couple

Can a Gentile theist be saved?

Is a naturally all "male" species possible?

Is there enough fresh water in the world to eradicate the drinking water crisis?

Did US corporations pay demonstrators in the German demonstrations against article 13?

node command while defining a coordinate in TikZ

How do I repair my stair bannister?

Female=gender counterpart?

Could solar power be utilized and substitute coal in the 19th century?

Can somebody explain Brexit in a few child-proof sentences?

Are Warlocks Arcane or Divine?

How to prevent YouTube from showing already watched videos?

Can the electrostatic force be infinite in magnitude?

Simple recursive Sudoku solver

Why are all the doors on Ferenginar (the Ferengi home world) far shorter than the average Ferengi?

A workplace installs custom certificates on personal devices, can this be used to decrypt HTTPS traffic?

How can I successfully establish a nationwide combat training program for a large country?



Text view html link not clickable [duplicate]


android: html in textview with link clickableHow do I center text horizontally and vertically in a TextView?Is there an easy way to add a border to the top and bottom of an Android View?How to display HTML in TextView?How do I make links in a TextView clickable?How do you change text to bold in Android?Auto Scale TextView Text to Fit within BoundsAndroid “Only the original thread that created a view hierarchy can touch its views.”Place cursor at the end of text in EditTextHow to set the part of the text view is clickableCannot display HTML string













-1
















This question already has an answer here:



  • android: html in textview with link clickable [duplicate]

    2 answers



I'm trying to make some text contain a hyper link for the view.



The html



<p>Random text with a <a href='https://myinsights-test.myunitron.com/' target='_blank' rel='noopener'>Link</a></p>


The text view



 <TextView
android:id="@+id/notification_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp"
android:text="@Html.fromHtml(viewModel.htmlBody)"
android:linksClickable="true"
android:autoLink="web"
android:clickable="true"
android:layout_gravity="center_horizontal"/>


the html is coming from a remote server so I don't have full control, although we've agreed to keep it this level of simple.










share|improve this question













marked as duplicate by Community Mar 21 at 15:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • Check out solution here: stackoverflow.com/questions/4438713/…

    – piotr.wittchen
    Mar 21 at 14:54















-1
















This question already has an answer here:



  • android: html in textview with link clickable [duplicate]

    2 answers



I'm trying to make some text contain a hyper link for the view.



The html



<p>Random text with a <a href='https://myinsights-test.myunitron.com/' target='_blank' rel='noopener'>Link</a></p>


The text view



 <TextView
android:id="@+id/notification_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp"
android:text="@Html.fromHtml(viewModel.htmlBody)"
android:linksClickable="true"
android:autoLink="web"
android:clickable="true"
android:layout_gravity="center_horizontal"/>


the html is coming from a remote server so I don't have full control, although we've agreed to keep it this level of simple.










share|improve this question













marked as duplicate by Community Mar 21 at 15:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • Check out solution here: stackoverflow.com/questions/4438713/…

    – piotr.wittchen
    Mar 21 at 14:54













-1












-1








-1









This question already has an answer here:



  • android: html in textview with link clickable [duplicate]

    2 answers



I'm trying to make some text contain a hyper link for the view.



The html



<p>Random text with a <a href='https://myinsights-test.myunitron.com/' target='_blank' rel='noopener'>Link</a></p>


The text view



 <TextView
android:id="@+id/notification_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp"
android:text="@Html.fromHtml(viewModel.htmlBody)"
android:linksClickable="true"
android:autoLink="web"
android:clickable="true"
android:layout_gravity="center_horizontal"/>


the html is coming from a remote server so I don't have full control, although we've agreed to keep it this level of simple.










share|improve this question















This question already has an answer here:



  • android: html in textview with link clickable [duplicate]

    2 answers



I'm trying to make some text contain a hyper link for the view.



The html



<p>Random text with a <a href='https://myinsights-test.myunitron.com/' target='_blank' rel='noopener'>Link</a></p>


The text view



 <TextView
android:id="@+id/notification_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp"
android:text="@Html.fromHtml(viewModel.htmlBody)"
android:linksClickable="true"
android:autoLink="web"
android:clickable="true"
android:layout_gravity="center_horizontal"/>


the html is coming from a remote server so I don't have full control, although we've agreed to keep it this level of simple.





This question already has an answer here:



  • android: html in textview with link clickable [duplicate]

    2 answers







android android-textview






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 21 at 14:45









Casey DanielCasey Daniel

1161213




1161213




marked as duplicate by Community Mar 21 at 15:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Community Mar 21 at 15:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Check out solution here: stackoverflow.com/questions/4438713/…

    – piotr.wittchen
    Mar 21 at 14:54

















  • Check out solution here: stackoverflow.com/questions/4438713/…

    – piotr.wittchen
    Mar 21 at 14:54
















Check out solution here: stackoverflow.com/questions/4438713/…

– piotr.wittchen
Mar 21 at 14:54





Check out solution here: stackoverflow.com/questions/4438713/…

– piotr.wittchen
Mar 21 at 14:54












1 Answer
1






active

oldest

votes


















0














This is how you can make link clickable for Android Part
Pass you data in HTML.fromHtml as I have passed



textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
textView.setMovementMethod(LinkMovementMethod.getInstance());





share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This is how you can make link clickable for Android Part
    Pass you data in HTML.fromHtml as I have passed



    textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
    textView.setMovementMethod(LinkMovementMethod.getInstance());





    share|improve this answer



























      0














      This is how you can make link clickable for Android Part
      Pass you data in HTML.fromHtml as I have passed



      textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
      textView.setMovementMethod(LinkMovementMethod.getInstance());





      share|improve this answer

























        0












        0








        0







        This is how you can make link clickable for Android Part
        Pass you data in HTML.fromHtml as I have passed



        textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
        textView.setMovementMethod(LinkMovementMethod.getInstance());





        share|improve this answer













        This is how you can make link clickable for Android Part
        Pass you data in HTML.fromHtml as I have passed



        textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
        textView.setMovementMethod(LinkMovementMethod.getInstance());






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 21 at 14:58









        VenkyVenky

        3711418




        3711418















            Popular posts from this blog

            Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

            밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

            1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴