Is there a way to hide text in a TextView?

前端 未结 7 2301
清歌不尽
清歌不尽 2021-02-08 13:09

Is there a way to hide some (but not all) of the text in a TextView? I tried setting the size to 0 with AbsoluteSizeSpan, but that doesn\'t have any visual effect that I see.

7条回答
  •  情歌与酒
    2021-02-08 13:49

    just had this issue. Basically you just display a part of the string by using substring or whatever and if you click on the textview, you set the fulltext to it.

    Hope it can help out someone going through that topic. (Can copy paste a snipet of code if required).

提交回复
热议问题