gpt4 book ai didi

android - 在软连字符处换行

转载 作者:行者123 更新时间:2023-12-04 13:41:33 24 4
gpt4 key购买 nike

我在所有字符串中都添加了软连字符,但 android 在完全不同的点打破了这些线条。有没有办法只在带有软连字符或空格的点处断开线条?

请注意,我想针对 API 21 及更高版本,因此使用 breakStrategy 或连字频率不是解决方案。

这些问题/答案都不适合我:
Hyphenation in Android

Android:- How to add Hyphen "-" in word break android TextView below 6.0 OS

How to force hyphenation in TextView? (character "-" on word split)

最佳答案

尝试添加android:hyphenationFrequency="normal"到你的 TextView

关于android - 在软连字符处换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56359689/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com