Status Update
Comments
lb...@gmail.com <lb...@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.
vi...@google.com <vi...@google.com> #3
Sean, would you be able to take the first stab at it and see what's needed?
lb...@gmail.com <lb...@gmail.com> #4
This happens because the nodes containing selection are removed from the composition when they're scrolled out of view, which causes the selection container to stop tracking them. This is one of the use cases for
si...@google.com <si...@google.com> #5
BasicText
to pin itself when it's participating in selection.
lb...@gmail.com <lb...@gmail.com> #6
It'd be interesting to test how it can affect performance when selecting large number of lines.
Description
I used :
EmojiCompat.init(BundledEmojiCompatConfig(this))
and in gradle (BTW docs are outdated, should be of android-x) :
implementation 'androidx.emoji:emoji-bundled:1.0.0'
But I don't see it working on preferences .
It shows the icon of "X" with square instead of emojis.
Tested on this emoji as title of some switchPreference:
🧪
Maybe I'm missing something?
Tested on emulator with Android API 27.