How to make links in a TextView clickable?

后端 未结 30 3309

I have the following TextView defined:



        
30条回答
  •  花落未央
    2020-11-21 23:52

    You need only this:

    android:autoLink="web"
    

    Insert this line to TextView, that can be clickable with reference to the web. URL address set as a text of this TextView.

    Example:

     
    

提交回复
热议问题