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 {
    /**
     * {@link TextView} background color setter.  Generally, the caller will
     * not pass {@link Component#COLOR_DEFAULT}, instead substituting in the
     * appropriate color.
     *
     * @param textview   text view instance
     * @param argb  background RGB color with alpha
     */
    public static void setBackgroundColor(TextView textview, int argb) {
        textview.setBackgroundColor(argb);
        textview.invalidate();
    }
}