I have one custom TextView whose name is TextViewPlus . I want to add a style to my custom TextView . when i write this on styles.xml it doesn't work. Error:
error: Error: A resource was not found that matches the specified name: attr. 'Foo: customFont
this is styles.xml:
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:foo="http://schemas.android.com/apk/res/com.example"> <style name="textstyle" parent="@android:style/TextAppearance"> <item name="android:textSize">50sp</item> <item name="foo:customFont">Fonts/BZar.ttf</item> </style> </resources>
Please note that I get my custom TextView from Custom Fonts and XML Layouts (Android)
source share