I would like to apply Black Roboto on a specific TextView. I defined a style, but I don't know how to set Black Roboto ?
In styles.xml file, I have this style:
<style name="IntroTitle">
<item name="android:textSize">48sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textAllCaps">true</item>
</style>
in my layout.xml:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/title"
style="@style/IntroTitle"
android:textColor="@android:color/white"
android:text="@string/intro_title_screen_1"/>
Thanks by advance
Thanks guys for your help.
The correct answer in my case for Black Roboto is:
<style name="IntroTitle">
<item name="android:fontFamily">sans-serif-black</item>
<item name="android:textSize">30sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textAllCaps">true</item>
</style>
For more informations, check on: android-sdk/platforms/android-/data/fonts/system_fonts.xml