Advertisement
ubersoldat

AndroidFontAwesomeExample

Jul 29th, 2013
6,082
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.34 KB | None | 0 0
  1. <Button
  2.  android:id="@+id/button2"
  3.  android:layout_width="wrap_content"
  4.  android:layout_height="wrap_content"
  5.  android:textColor="#ff0000"
  6.  android:text="@string/icon_heart" />
  7.  
  8. <!-- This is the Java Code
  9.  Typeface font = Typeface.createFromAsset( activity.getAssets(), "fontawesome-webfont.ttf" );
  10.  ...
  11.  button.setTypeface(font);
  12. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement