Is there a way to hide text in a TextView?

前端 未结 7 2292
清歌不尽
清歌不尽 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:55

    Not sure if you are still looking for an answer to this, as it is very old, but I found it while looking for something and thought I could help. Have you tried setting one button on the keyboard or a hardware button to switch between the visible TextView and a hidden one. You would have to play around with copying text from visible to hidden if you want to keep the visible as part of the hidden. If you want the hidden to be its own text, then this will be an easy solution.

提交回复
热议问题