Java tutorial
//package com.java2s; import android.widget.TextView; public class Main { /** * Sets the text for a {@link TextView}. * * @param textview text view instance * @param text new text to be shown */ public static void setText(TextView textview, String text) { textview.setText(text); textview.requestLayout(); } }