Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.res.ColorStateList;

import android.widget.TextView;

public class Main {
    public static void setTextColors(TextView textview, ColorStateList colorStateList) {
        textview.setTextColor(colorStateList);
    }

    /**
     * Sets the text color for a {@link TextView}.
     *
     * @param textview   text view instance
     * @param argb  text RGB color with alpha
     */
    public static void setTextColor(TextView textview, int argb) {
        textview.setTextColor(argb);
        textview.invalidate();
    }
}