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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript