Android examples for User Interface:View Property
set TypeFace to View
//package com.java2s; import android.graphics.Paint; import android.graphics.Typeface; import android.widget.TextView; public class Main { private static boolean DO_SUBPIXEL_RENDERING = true; public static void setTypeFace(Typeface typeFace, TextView... views) { for (TextView view : views) { view.setTypeface(typeFace);/*from www .j a v a 2 s . co m*/ if (DO_SUBPIXEL_RENDERING) { System.out.println("do subpixel rendering"); view.setPaintFlags(view.getPaintFlags() | Paint.SUBPIXEL_TEXT_FLAG); } } } }