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

            How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

            Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?