Android TextView Hyperlink

前端 未结 8 752
悲&欢浪女
悲&欢浪女 2021-02-05 03:45

I\'m implementing a TextView with a string containing two hyperlinks as below but the links are not opening a new browser window:



        
8条回答
  •  粉色の甜心
    2021-02-05 04:05

    This works for me

    Add this in your textview:

    android:autoLink="all"
    android:clickable="true"
    

    https://www.youtube.com/watch?v=UnJxyfyDyHU

    I hope this help you.

提交回复
热议问题