java - setMovementMethod doesn't work in android textview -


i have textview text coming database. text can normal text or can link or both. this, parsing text in html using html.fromhtml(mytext). link can detected , display clickable. working fine. displays clickable string links , non-clickable normal text. when click text, doesn't work , nothing happens. this getting server text :

dear user:  review titled <a href="http://example.com/review/sometext-1069459" target="blank">normal verified negative 1 desktop</a> on product <a href="http://example.com/product-reviews/text-925766045"  target="blank">clickable text</a> has been resolved.  check corporate response  <a target="blank" href="http://example.com/interact.php?add=http://example.com/blog/ejhhspsqmn/please-talk-about-your-companys-products-and-services-onlyplease-present-your-post-in-an-objectiv&session_id=se9qexa6jsy%3d">click here</a>  have great day!   regards, head - member support 

to make clickable text, use setmovementmethod below :

textview.settext(html.fromhtml(mytext)); textview.setmovementmethod(linkmovementmethod.getinstance()); 

but not working. there missing add in code ? using android:autolink="web" in xml.

enter image description here

remove android:autolink="web" in xml.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -