Shrink-wrapping of message bubbles (fix included)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先定位聊天气泡的 Android Text/TextView 和 Compose 实现,然后将它们的多行尺寸调整与所引用的 ShrinkWrapText 软件包的行为进行比较。按照建议,先尝试 Compose 集成,并验证多行气泡是否能与所提供的前后截图一致地适应其内容。
由索引模型根据 Issue 内容生成。
描述
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:
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GetStream/stream-chat-android 的其他 Issue
-
feature request
难度 3/5 1-2 天 新手友好度 65/100
GetStream/stream-chat-android#6556 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Add Sort Order Support for Media and Files Attachments Lists in Channel Info可能重新可做 关联的 PR 已关闭且未合并。 未关闭feature request
难度 4/5 3-5 天 新手友好度 55/100
GetStream/stream-chat-android#6359 ·
维护者通常 1 天内回复
-
compose feature request
难度 4/5 3-5 天 新手友好度 35/100
GetStream/stream-chat-android#5612 · 3 条评论 ·
维护者通常 1 天内回复
-
core feature request
难度 4/5 3-5 天 新手友好度 25/100
GetStream/stream-chat-android#5279 ·
维护者通常 1 天内回复
-
feature request ui-components
难度 3/5 1-2 天 新手友好度 35/100
GetStream/stream-chat-android#5006 · 3 条评论 ·
维护者通常 1 天内回复
查看 GetStream/stream-chat-android 的全部 Issue
相似的 Issue
-
afk-ok area:data-quality importer size:S
难度 2/5 1-3 小时 新手友好度 74/100
enorm-labs/event-junkie#3301 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
rustyrazorblade/easy-db-lab#1017 ·
维护者通常 1 天内回复
-
enhancement impact:U1 later P3 reach:R2 size:S
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 82/100