我尝试使用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
给出拼写错误警告)
我尝试了几个文件但每个都产生了相同的结果。