<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="TextViewAppearance" parent="@android:style/TextAppearance.Widget.TextView">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="typeface">robotoRegular</item>
</style>
<style name="TextViewAppearance.Display1" parent="@style/TextViewAppearance">
<item name="typeface">robotoBlack</item>
<item name="android:textSize">45sp</item>
<item name="android:textColor">@color/main_color_grey_500</item>
</style>
</resources>
ottenendo l'errore: Errore: (4, 5) No risorsa trovato che corrisponde al nome dato: attr 'carattere'.Errore: Nessun risorsa trovato che corrisponde al nome dato: attr 'carattere'
sto usando
1. Android 1.5.1 Studio
2. minSdkVersion 15
3. targetSdkVersion 23
< ----------- Modifica --- ------------------>
Il mio file di layout è
<abcapp.com.font.RobotoTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ABC"
android:textSize="16sp"
app:typeface="robotoBlack" />
Sto usando "app: typeface" nel file di layout xml. Ho appena aggiunto il codice del file di layout xml nella mia domanda – Ali
@smoke http://stackoverflow.com/questions/2973270/using-a-custom-typeface-in-android –