我想在特定的TextView上应用Black Roboto。我定义了一种风格,但我不知道如何设置Black Roboto?Android Black Roboto字体样式
在styles.xml文件,我有这样的风格:
<style name="IntroTitle">
<item name="android:textSize">48sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textAllCaps">true</item>
</style>
在我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"/>
由于通过提前
你有一个ttf文件的字体? – yrazlik