I have a scenario in which when talkback is turned on and we open a dialog, there is a recycler view or a list of items in the view, so the voice reads the content along with a count of the item inside the view as we scroll.
Now my question: Is there a way we can give custom content speak to the talkback when there is a scroll happening? Or if not can we disable the talkback on scroll?
I have tried a few solutions from the stack ref one and ref two but both of them did not work.
NOTE: the dialog is created in jetpack compose
@Composable
fun AppCustomDialog(
viewModel: AppCustomDialogViewModel,
onCloseRequest: () -> Unit
) {
AppDialog(
viewModel = viewModel,
onCloseRequest = onCloseRequest
) { contentViewModel, _ ->
ViewModelDataBindingView(
layoutId = contentViewModel.layoutId,
viewModel = contentViewModel.viewModel,
)
}
}