Difference between android:id and android:labelFor?

后端 未结 5 647
春和景丽
春和景丽 2020-12-25 10:37

I wrote a simple layout which has an EditText, but it\'s showing the following warning message:

“No label views point to this text field”

5条回答
  •  心在旅途
    2020-12-25 11:10

    android:labelFor

    Use this attribute to indicate that a View should act as a content label for another View.

    
        
        
    
    

    For more details: Android Accessibility - How to provide content labels

提交回复
热议问题