Java tutorial
//package com.java2s; import android.widget.TextView; public class Main { /** * Enables a {@link TextView}. * * @param textview text view instance * @param enabled {@code true} for enabled, {@code false} disabled */ public static void setEnabled(TextView textview, boolean enabled) { textview.setEnabled(enabled); textview.invalidate(); } }