Android Question Accessibility: How to use setLabelFor() in B4A?

b4x-de

Active Member
Licensed User
Longtime User
I need to add accessibility features to my apps due to regulation in EU. Therefore I would like to link a Label to the related element, i.e. a text field using this Android feature:

https://developer.android.com/reference/android/view/View#setLabelFor(int)

Any help is appreciated!

By the way: It is not only me, but everyone must ensure accessibility in their apps if the software is to be used in companies within the EU ("European Accessibility Act"). The same applies to apps that are to be used in public administration within the EU ("Web Accessibility Directive"). For instance in Germany the national law requires companies to comply for all their mobile apps by June 2025. In public sector mobile apps had to comply since June 2021.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…