title: setting TextView's text style to TextAppearance.Appcompat... programmatically
body: <p>I have been using:</p>
  
  <pre><code>    style="@style/TextAppearance.AppCompat.SearchResult.Title"
  </code></pre>
  
  <p>in my layout xml, but this time i want to set text style programmatically from java code.
  But this code:</p>
  
  <pre><code>        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
          textView.setTextAppearance(R.style.TextAppearance.AppCompat.SearchResult.Title);
      } else {
          textView.setTextAppearance(this, R.style.TextAppearance.AppCompat.SearchResult.Title);
      }
  </code></pre>
  
  <p>doesn't compile. It says 'Cannot resolve symbol 'TextAppearance'.</p>