I've been trying to obtain a certain layout but all my attempts have failed short.
I have 2 textviews within a limited space. As long as there is space to show both, I want them to show one after the other:
| T1 T2222 |
| T111111 T2222 |
But when space runs short, I want only the first one to get ellipsized or otherwise cut, such as this:
| T1111111... T2222 |
It may help - or not - that both are only supposed to have 1 line.
It may help - or not - that the second's width can be fixed.
I've tried the ideas at Two TextViews side by side, only one to ellipsize? but that case is different from mine because their T2 is meant to anchor at the right, whereas I'd like to have T2 just follow T1.
I've tried specifying a minWidth for T2, but it doesn't seem to be honoured; plain width is, but I can't seem to control T1's behaviour.
I've dabbled with weights, but found nothing that would solve the problem. But that may be my inexperience.
I could specify a maxWidth for T1, and it it were honoured it might do what I wish, but the problem is that the whole width of the limited space is unspecified.
At this point I'm starting to think there is no way to do it - unless maybe programatically, which is a route I'd like to avoid.
Thank you for any suggestions.