yschimke
01/12/2024, 8:11 AMyschimke
01/12/2024, 8:11 AMyschimke
01/12/2024, 8:13 AMyschimke
01/12/2024, 8:13 AMfocusRequester.requestFocus()
yschimke
01/12/2024, 8:16 AMyschimke
01/12/2024, 8:17 AMrequestFocus()
you can't ignore the hierarchical nature, which means that your Composable may be composed, but not active to the user (background in the nav host, or another page of HorizontalPager).yschimke
01/12/2024, 8:20 AMScalingLazyColumn or VerticalPager {
// higher content
HierarchicalFocusRequester(requiresFocus = { shouldFocusOnPicker }) {
// Picker goes here
}
// lower content
}
And toggle shouldFocusOnPicker. But unless you demonstrate it visually, I suspect it will be confusing for the user.yschimke
01/12/2024, 10:17 AMyschimke
01/12/2024, 10:17 AMJonathan
01/12/2024, 3:14 PM