自定义可扩展 TextView

Custom Expandable TextView

我正在尝试创建具有 expand/collapse 功能的自定义 TextView。

有没有人知道如何实现这一点,扩展 TextView 并覆盖 onDraw 方法?? (或任何其他更好的方法)?

非常感谢!

最后我自己做了,here 是 repo

https://github.com/CorradiSebastian/ExpandableTextView