set Font Typeface to TextView - Android User Interface

Android examples for User Interface:TextView

Description

set Font Typeface to TextView

Demo Code


//package com.java2s;

import android.graphics.Typeface;
import android.widget.TextView;

public class Main {
    public static void setFontTypeface(TextView textView, Typeface typeface) {
        textView.setTypeface(typeface);/*from w w  w  .  j a  v  a  2 s .  c o m*/
    }
}

Related Tutorials