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:
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.
Public Sub SetLabelFor (Lbl As B4XView, Target As B4XView)
Lbl.As(JavaObject).RunMethod("setLabelFor", Array(Target.As(JavaObject).RunMethod("getId", Null)))
End Sub