Friday, January 9, 2015

How to set Button font in Android

Button Typeface
activity_main.xml code snippet

<Button
 android:id ="@+id/push_button"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:text="Button - Monospace Font"
 android:typeface="monospace"
 android:textSize="50sp"
 />

android:typeface="monospace"
android:typeface="sans"
android:typeface="serif"
More android examples