https://kotlinlang.org logo
#compose
Title
# compose
d

Dan Peluso

09/06/2023, 8:23 PM
Looking for some advice using the
FocusRequester
API in a Lazy Column. Is there a good way to use a boolean value from a lazy list item (in my case, whether or not an element in the list is selected) to start focus on the selected item in the list? The trouble I'm having is that it seems like you need to declare refs for the column and give every item in the list a component number, but I can't do that for a list with a variable amouynt of items. I just want the selected list item to be read first with talkback
y

yschimke

09/07/2023, 7:17 AM
I think we've seen cases where TalkBack and focus requester don't always match or at least do. What you expect.