title: Using custom Textview in Style
body: <p>I have one custom <code>TextView</code> whose name is <code>TextViewPlus</code>. I want to add style for my custom <code>TextView</code>. when i write this to <code>styles.xml</code> it hasn't work. The error is :</p>
  
  <blockquote>
    <p>error: Error: No resource found that matches the given name: attr
    'foo:customFont'.</p>
  </blockquote>
  
  <p>this is styles.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources
      xmlns:foo="http://schemas.android.com/apk/res/com.example"&gt;
  
      &lt;style name="textstyle" parent="@android:style/TextAppearance"&gt;
          &lt;item name="android:textSize"&gt;50sp&lt;/item&gt;
          &lt;item name="foo:customFont"&gt;Fonts/BZar.ttf&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>Notice that I get my custom TextView from <a href="https://stackoverflow.com/questions/2376250/custom-fonts-and-xml-layouts-android">Custom fonts and XML layouts (Android)</a></strong> </p>