Skip to content

Shrink-wrapping of message bubbles (fix included) #6243

@Janneman84

Description

@Janneman84

Chat bubbles on Android often look different than on iOS. This is because on Android if text gets wrapped to multiple lines the width of the Text/TextView always gets maxed out. This often results in chat bubbles not tightly fitting its content.

I created a package for Android that makes TextView/Text elements behave like they do in iOS. I applied it to your app, the screenshots below show the difference.

Before and after:

Image

My package can be found here:
https://github.com/Janneman84/ShrinkWrapText

It works both with XML and Compose, it's really easy to implement. However for your app the XML layout file will need to be slightly adjusted for it to work. If interested I can share what needs to change. I suggest you try it in Compose first, this should work instantly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions