← Back to context

Comment by comex

5 hours ago

I notice that

    Syncthing-For
    k

is one of the first pieces of text in the first screenshot. With the k on its own line like that. Not usually something I’d comment on, but if you’re showing off a redesign…

That app itself also has some of the most revolting UI I've seen in a modern Android app (Vertical gradient filled buttons with thick gray strokes surrounded by not-quite-Material UI widgets, in a nonsensical custom control they had to go out of their way to make rather than just use a dropdown). Android developers really just don't care.

It's annoying and easy to forget, but you have to enable the high-quality line break algorithm per Text component in Compose. Or you have to set two flags (maxLines=1 and overflow=TextOverflow.Ellipsis). I usually end up with a TitleText and BodyText component in my codebases that set these flags internally so I don't have to remember.