Simon Stahl
01/27/2022, 7:35 PMAdam Powell
01/27/2022, 8:03 PMSimon Stahl
01/27/2022, 8:30 PMAdam Powell
01/27/2022, 8:32 PMSimon Stahl
01/27/2022, 8:55 PMZach Klippenstein (he/him) [MOD]
01/27/2022, 11:00 PMSimon Stahl
01/27/2022, 11:58 PMModifier.transformLayoutCoordinates()
is unknown. it's ok though, i got another custom implementation that does work until your changes get merged inZach Klippenstein (he/him) [MOD]
01/28/2022, 5:53 AMSimon Stahl
01/28/2022, 8:02 PMval speed = (-30).dp
val spacing = 50.dp
val marqueeState = rememberScrollingMarqueeState(dpsPerSec = speed)
Text(
modifier = Modifier
.fillMaxWidth()
.marquee(state = marqueeState, spacing = spacing),
text = it,
maxLines = 1
)
Zach Klippenstein (he/him) [MOD]
01/29/2022, 5:52 AMSimon Stahl
01/30/2022, 9:34 PMMarqueeSamples
and MarqueeDemo
? I wonder if, since marquee text is probably the default case folks are looking for, it would make sense to include a shortcut for this case?TextView
and can be configured in a similar way
TextView(context).apply {
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT
)
text = "The quick brown fox jumped over the lazy dogs."
isSingleLine = true
ellipsize = TextUtils.TruncateAt.MARQUEE
marqueeRepeatLimit = -1
isHorizontalFadingEdgeEnabled = true
isSelected = true
textAlignment = View.TEXT_ALIGNMENT_CENTER
}
Zach Klippenstein (he/him) [MOD]
02/01/2022, 3:20 AM