Ondřej Kycelt
08/08/2024, 11:38 AMAndroidView
inside a compose hierarchy. If I call requestFocus()
on a FocusRequester
attached to a composable outside of the AndroidView
, the focus jumps to another view inside an AndroidView
instead of the composable with FocusRequester
. The jump size seems related to the number of items inside the composable with FocusRequester
. E.g. if there are 4 items, it jumps by 4 items, if the composable with FocusRequester
is a focusGroup()
, it jumps by 1 item. In case of a multiple-item-jump ViewGroup.requestChildFocus(child, focused)
is called for every child view. I’ve also tried experimenting with focusProperties
on the AndroidView
but no luck.
Is there any special setup required since 1.7 or is this a bug?
I’ve already filed an issue with a minimal repro, but no response yet. https://issuetracker.google.com/issues/352690889Ondřej Kycelt
08/08/2024, 11:41 AMZach Klippenstein (he/him) [MOD]
08/08/2024, 5:57 PMRalston Da Silva
08/12/2024, 8:06 PMOndřej Kycelt
08/13/2024, 9:00 AMfocusGroup()
to Menu
, that's actually how we have it set up in production, but menu still doesn't get focused. Instead of jumping by 4 items down, the focus jumps by 1 item.Ondřej Kycelt
08/20/2024, 9:52 AMRalston Da Silva
10/01/2024, 12:47 AMOndřej Kycelt
10/01/2024, 8:23 AM