Is there a way to disable the xml warnings?

后端 未结 2 2086
离开以前
离开以前 2021-02-13 18:10

I just did an update of my SDK and now eclipse is giving me all sorts of totally unwanted warnings in my xml... for example I have a RelativeLayout that doesn\'t have an id or a

2条回答
  •  萌比男神i
    2021-02-13 18:29

    According to the documentation at http://tools.android.com/recent/ignoringlintwarnings you do this by including the tools xmlns:

    xmlns:tools="http://schemas.android.com/tools"
    

    And then adding a tools:ignore annotation in the relevant elements:

    
    

提交回复
热议问题