Format TextView to look like link

前端 未结 7 1617
醉话见心
醉话见心 2021-01-04 02:21

I\'ve been using the android:autoLink just fine for formatting links and such, but I need to use android:onClick so I can\'t use that in this case.

7条回答
  •  一个人的身影
    2021-01-04 02:48

    • You can create a colors.xml resource file, what contains colors. Please take a look at Colors
    • If you want to underline your text, then please take a look at this post: Underline
    • Don't forget to add android:clickable="true" or setClickable(true) to your TextViews to make them clickable!

提交回复
热议问题