Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两行可能被省略的文本。但无论需要多少行,我都需要一些额外的(短但长度可能会有所不同)文本在前一个文本的末尾始终完全可见。
以下是代表我的问题的三个案例:
我怎样才能做到这一点?我尝试测量文本长度并将其拆分为两个 TextView,但它不够准确,而且性能也很差。