Alex Styl
06/10/2025, 10:38 AMAlex Styl
06/10/2025, 10:56 AMHalil Ozercan
06/10/2025, 11:36 AMfocusGroup
? Where is the next supposed focusable item that is outside the focusGroup
?Tolriq
06/10/2025, 11:43 AMAlex Styl
06/10/2025, 11:47 AM???
<- not sure what to put there so that i can move to 'outside' after, without passing a ref to 'outside'.
PS: I can't put a ref to outside because im working on a library. the inner row is my library component and i can't control the outside
Row {
val (first, second, third) = remember { FocusRequester.createRefs() }
Row {
Button(
{},
modifier = Modifier
.focusRequester(first)
.focusProperties { next = second }
) {
Text("First field")
}
Button(
{},
modifier = Modifier
.focusRequester(third)
.focusProperties { next = ??? }
) {
Text("Third field")
}
Button(
{},
modifier = Modifier
.focusRequester(second)
.focusProperties { next = first }
) {
Text("Last field")
}
}
Button(onClick = {}) {
Text("Outside")
}
}