title: Suppressing Lint Warnings in XML
body: <p>My understanding is that suppressing individual warnings can be done in XML by adding an <code>ignore</code> property, e.g.</p>
  
  <pre><code>xmlns:tools="http://schemas.android.com/tools"
  tools:ignore="SpUsage"
  android:textSize="30dp"
  </code></pre>
  
  <p>This works fine when the text size is directly specified. But when I use a reference to a dimension, e.g.</p>
  
  <pre><code>android:textSize="@dimen/largeTextSize"
  </code></pre>
  
  <p>Lint produces a warning in spite of the ignore.</p>
  
  <p>Let's assume that the given case is a justified exception, and that the guidance on generally preferring <code>sp</code> dimensions over <code>dp</code> for text is well understood and followed.</p>
  
  <p>Because this is an exception I do not want to disable the warning globally. How can I do it locally?</p>