Closed fabOnReact closed 2 years ago
Related issue https://github.com/react-native-progress-view/progress-bar-android/issues/61#issuecomment-785188227
ProgressBarAndroid is not focusable on Android API 28. The ScreenReader will not focus on the ProgressBar on API28, but works in API30. ScreenReader announces the values if setFocusable (see e0db4aa and VIDEO) is called on ProgressBar instance on API 28.
Debugging setItemCount (IMAGE), View method onFocus and logging with Android Studio (VIDEO and more info).
Accessibility Issue on API 28
Commit https://github.com/fabriziobertoglio1987/progress-bar-android/commit/a6b7cc966277ae15a744b0b4df08f860a24eab1a adds the accessible prop from the ReactViewManager (video) for debugging purpose.
Relevant code for adding accessibilityState: https://github.com/fabriziobertoglio1987/react-native/blob/76a2cf3569571b943b4bcc6867e069338ff88f1f/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java#L180
Relevant code to announce the ProgressBarValue (10%, 20%, 30%) https://github.com/fabriziobertoglio1987/progress-bar-android/blob/2dc8ceb1148c065847191ca160985f7cf821c6f8/android/src/main/java/com/reactnativecommunity/androidprogressbar/ProgressBarContainerView.java#L91-L92
Breaking down the relation between ReactAccessibilityDelegate, BaseViewManager and how the accessibilityState triggers the announcement
The method is never called
@Override
public void updateExtraData(ProgressBarContainerView root, Object extraData) {
// do nothing
}
and overrides
Seems not relevant for accessibility.
https://github.com/facebook/react-native/issues/30941 and https://github.com/react-native-progress-view/progress-bar-android/issues/62
Description