Autolink inside a TextView in android

前端 未结 5 1973
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 02:57

How to give autolink for some part of textview ? For example : My text inside TextView is \"Please click here to open this webpage\". I want to show link for only the text \

5条回答
  •  青春惊慌失措
    2020-12-14 03:23

    use simple Url in strings.xml :

    Please Click Here : http://www.google.com
    

    And in Java code write this:

    `
    

提交回复
热议问题