set Text and font to TextView - Android User Interface

Android examples for User Interface:TextView Font

Description

set Text and font to TextView

Demo Code


//package com.java2s;

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

public class Main {
    public static void setTitle(TextView title, Typeface font, String text) {
        title.setTypeface(font);/*from   w  w  w  .ja  va2s.  c o m*/
        title.setText(text);
    }
}

Related Tutorials