Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Shrink-wrapping of message bubbles (fix included)

未关闭
#6,243 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, kotlin
领域
mobile

调研方向

首先定位聊天气泡的 Android Text/TextView 和 Compose 实现,然后将它们的多行尺寸调整与所引用的 ShrinkWrapText 软件包的行为进行比较。按照建议,先尝试 Compose 集成,并验证多行气泡是否能与所提供的前后截图一致地适应其内容。

由索引模型根据 Issue 内容生成。

描述

feature request

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.

主要语言
Kotlin
星标
1.7k
派生
320
平均合并
1 天 16 小时
30 天内合并 PR
114

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GetStream/stream-chat-android 的其他 Issue

查看 GetStream/stream-chat-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。