Example usage for android.view Window setTitle

List of usage examples for android.view Window setTitle

Introduction

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

Prototype

public abstract void setTitle(CharSequence title);

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);
            if (color != 0) {
                win.setTitleColor(color);
            }//from w  w w.jav  a 2 s  .  c om
        }
    }
}