set TextView Color - Android User Interface

Android examples for User Interface:TextView Color

Description

set TextView Color

Demo Code


//package com.java2s;
import android.widget.TextView;

public class Main {
    public static void setTextColor(int color, TextView... views) {
        for (TextView view : views) {
            view.setTextColor(view.getResources().getColor(color));
        }//from w w  w.  ja  v  a 2 s  . c om
    }
}

Related Tutorials