0
  • 自定义的TextView


    原生的TextView

    1310859053961961472  评论     打赏       Nuttertools
    • Nuttertools  回复 @Nuttertools
      点击效果还在,但是颜色没了
      Nuttertools 2021-09-23 14:50   回复 1310859053961961472
    • 断点-含光君  回复 @Nuttertools
      我记得颜色没了,是有一个接口返回一个波尔值就解决了
      断点-含光君 2021-09-23 15:07   回复 1139423796017500160
    • Nuttertools  回复 @断点-含光君
      但是我只重写了onDraw方法,其他都没有动
      Nuttertools 2021-09-23 15:13   回复 1310859053961961472
    • 拉大锯  回复 @Nuttertools
      你这么说就明白了嘛,现在忙,晚点给你写一个吧。
      拉大锯 2021-09-23 16:07   回复 1153952789488054272
    • 拉大锯  回复 @Nuttertools
      https://github.com/loonggg/TextViewSpanLink,给你找了一个。看看代码吧,这个代码修改一下就可以变成你要的了。
      拉大锯 2021-09-23 16:12   回复 1153952789488054272
    • Nuttertools  回复 @拉大锯
      我自定义的这个TextView是用来做文本两端对齐的,但是跑起来发现颜色丢了
      Nuttertools 2021-09-23 16:36   回复 1310859053961961472
  • 没看懂是啥问题。

    1153952789488054272  评论     打赏       拉大锯
    • Nuttertools  回复 @拉大锯
      就是这个自定义的TextView设置字体高亮的时候无效,类似《用户协议》,《隐私协议》
      Nuttertools 2021-09-23 14:43   回复 1310859053961961472
    • Nuttertools  回复 @拉大锯
      我现在就是怀疑我的onDraw方法写漏了什么东西,用原生的TextView是可以高亮的
      Nuttertools 2021-09-23 14:45   回复 1310859053961961472
相关问题
_empty · Android
2019-10-20 23:51 628 2
application · Android
2019-11-05 00:26 779 2
三流废物 · android / 小白
2019-11-22 00:35 1067 5
豪豪好嘛 · Android / GPS
2019-11-26 20:15 884 5
Jian · android
2019-11-28 01:51 615 2
2019-12-01 01:01 705 2
小陈学编程 · Android
2019-12-01 19:08 633 2
fkinggod · Android
2019-12-08 09:19 661 5
fkinggod · Android
2019-12-08 20:47 610 2
kissmyass · Android
2019-12-09 07:08 537 2
独一无二的名zi · Android
2019-12-30 06:48 415 2