我想实现下面的文本对齐。
The first line should have left alignment but if it's long enough
then the remaining lines should have the right alignment
我想到了几种解决方法,但是无法提出可行的解决方案。首先,由于意图,设置gravity
或alignment
显然不起作用。第二,拥有多个textview可以通过编程方式添加,但似乎应该有更好的方法。所以我想到了某种跨度,但不知道如何。欢迎所有建议。