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.
2 行に省略できるテキストがあります。しかし、行数に関係なく、追加の (短いが長さは異なる場合があります) テキストが前のテキストの最後に常に完全に表示されるようにする必要があります。
私の問題を表す 3 つのケースを次に示します。
どうすればこれを達成できますか?テキストの長さを測定して 2 つの TextView に分割しようとしましたが、正確ではなく、パフォーマンスも低下します。