Android examples for User Interface:TextView Font
set TextView Typeface
//package com.java2s; import android.graphics.Typeface; import android.view.View; import android.widget.TextView; public class Main { public static void setTypeface(View container, int id, Typeface face) { if (container == null) return; setTypeface(container.findViewById(id), face); }/*from w ww. ja va 2s. c om*/ public static void setTypeface(View textView, Typeface face) { ((TextView) textView).setTypeface(face); } }