Example usage for android.view Window setTitleColor

List of usage examples for android.view Window setTitleColor

Introduction

In this page you can find the example usage for android.view Window setTitleColor.

Prototype

@Deprecated
    public abstract void setTitleColor(@ColorInt int textColor);

Source Link

Usage

From source file:android.app.Activity.java

protected void onTitleChanged(CharSequence title, int color) {
    if (mTitleReady) {
        final Window win = getWindow();
        if (win != null) {
            win.setTitle(title);/*from ww  w .j av  a  2  s .c o  m*/
            if (color != 0) {
                win.setTitleColor(color);
            }
        }
    }
}