stage View As Text View - Android User Interface

Android examples for User Interface:View Tag

Description

stage View As Text View

Demo Code


//package com.java2s;
import android.view.View;
import android.widget.TextView;

public class Main {
    public static void stageViewAsTextView(View view, String text,
            int fontSize) {
        TextView textView = (TextView) view;

        textView.setText(text);/*from   w  ww.ja  v a  2s. c  om*/
        textView.setTextSize(fontSize);
    }
}

Related Tutorials