Search code examples
javaandroidmobileaccessibility

Android.view.View setAccessibilityLabel() method. Is there another way?


Previously in React Native/JavaScript I used setAccessibilityLabel() method on a View to set the accessibility label.

After moving to native Java, it appears an equivalent method doesn't exist for Android.view.View.

How is the accessibility label handled for Java class Android.view.View ?


Solution

  • The function is setContentDescription in native.