Search code examples
androidandroid-studio

Missing accessibility label: in Android Studio Warning


Missing accessibility label: where minSdk < 17, you should provide an android:hint Editable text fields should provide an android:hint or, provided your minSdkVersion is at least 17, they may be referenced by a view with a android:labelFor attribute. When using android:labelFor, be sure to provide an android:text or an android:contentDescription. If your view is labeled but by a label in a different layout which includes this one, just suppress this warning from lint.

Issue id: LabelFor

How can fix this warning?


Solution

  • Just add

    tools:ignore="LabelFor" 
    

    in your xml.