android - how to handle the text view link click internally -


i'm using text view display following html content,

<div style="width:100%; background-color: #4bcde3; padding-top: 5px; padding-bottom: 5px">     <h2 style=" margin-left: 20">         <a href="http://www.exmaster.com.au/event/13004a8fd9979fe2" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">buy tickets</span></a></h2> </div> <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">     <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">         <h2 style=" margin-left:20">             <a href="tt://artist/10479/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">part one: love</span></a></h2>     </div>     <h2 style=" margin-left:20">         <a href="tt://artist/10475/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">a briagolong character - greg dunsmuir</span></a></h2> </div> <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">     <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">         <h2 style=" margin-left:20">             <a href="tt://artist/10478/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">rent</span></a></h2>     </div>     <h2 style=" margin-left:20">         <a href="tt://artist/10476/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">ace of spades</span></a></h2> </div> <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">     <h2 style=" margin-left:20">         <a href="tt://artist/10477/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">things love</span></a></h2> </div> <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">     <h2 style=" margin-left:20">         <a href="tt://artist/10480/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">in transit</span></a></h2> </div> <div style="width:100%; background-color: rgba(0,0,0,0.0); padding-top: 5px; padding-bottom: 5px">     <h2 style=" margin-left:20">         <a href="tt://artist/10481/nil" style="text-decoration: none; color: white"><span style="border-bottom: 1px solid white">catch perfect</span></a></h2> </div> <p>     &nbsp;</p>      detail_content.settext(html.fromhtml(appmajikwidgetdataelement.getcontent()));   detail_content.setmovementmethod(linkmovementmethod.getinstance()); 

when user click on link , if start tt://artist need handle logic inside app, if user click on link "http://www.exmaster.com.au/event/13004a8fd9979fe2" should open web browser,

can 1 on this


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -