Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
    }
}