简体   繁体   中英

Jetpack Compose: elegantTextHeight in Jetpack Compose

我想知道 Jetpack Compose 中的 android:elegantTextHeight 属性是什么

According to this description , I think you are looking for a softWrap attribute.

softWrap: Boolean = true

Example:

@Composable
Text(text = "Some text", softWrap = true)

Whether the text should break at soft line breaks. If false, the glyphs in the text will be positioned as if there was unlimited horizontal space. If softWrap is false, overflow and TextAlign may have unexpected effects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM