工具:忽略不工作的xml

时间:2017-02-15 07:23:27

标签: android xml

我尝试使用tools:ignore忽略xml属性中的拼写错误,但它无效...

任何想法为什么不呢?

注意:我不想全局禁用Typo检查,只是特定文件的特定属性

我尝试过的事情:

<TextView
    tools:ignore="all"
    android:id="@+id/labl"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

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

<!--suppress all -->
<TextView
    android:id="@+id/labl"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

(注意labl给出拼写错误警告)

我尝试了几个文件但每个都产生了相同的结果。

1 个答案:

答案 0 :(得分:0)

转到检查&gt;拼写&gt;错字并取消选中它。enter image description here