Assigned
Status Update
Comments
ti...@google.com <ti...@google.com>
do...@gmail.com <do...@gmail.com> #2
Forgot to add a sample code! Here it goes:
SelectionContainer {
LazyColumn {
items(100) {
Text("Line number $it")
}
}
}
A normal column works without any issues (expected since everything is composed unlike the LazyColumn).
Edit to give more details about my use case: I'm trying to show the lines of a text document in my app, so using a column is not an option as the files can be quite large.
ti...@google.com <ti...@google.com> #3
Sean, would you be able to take the first stab at it and see what's needed?
Description
Hello (Doris)!
Currentlyhttps://developer.android.com/reference/kotlin/android/animation/Keyframe
KeyframesSpecConfig
requires you to define keyframes in terms of their exact duration in milliseconds. It would be nice if there was a way to construct keyframes in terms of their fractions instead. This would mirror the behavior of theandroid.animation.Keyframe
class here:Using fractions is slightly more flexible (since you can construct them w/o knowing the exact animation duration), and also makes it easier to port existing
AnimatedVectorDrawable
s (and other animations) which use theandroid.animation.Keyframe
class to the Compose APIs.There is actually a pretty similar request regarding the gradient API as well, which is worth pointing out: https://issuetracker.google.com/issues/173066799