get Button Typeface - Android android.graphics

Android examples for android.graphics:Typeface

Description

get Button Typeface

Demo Code

import android.content.Context;
import android.graphics.Typeface;

public class Main {

  /**/*  ww w .j  av  a 2  s .c  o  m*/
   * Get type face
   * 
   * @param aContext
   *          context of the activity
   * @return typeface
   */
  public static Typeface getButtonTypeface(Context aContext) {
    return Typeface.createFromAsset(aContext.getAssets(), "Montserrat-Bold.ttf");
  }

}

Related Tutorials