set Activity to have No Title - Android android.app

Android examples for android.app:Activity Property

Description

set Activity to have No Title

Demo Code

import android.app.Activity;
import android.app.AlertDialog;
import android.content.res.Resources;
import android.view.Window;
import android.view.WindowManager;

public class Main{

    public static void setNoTitle(Activity activity) {
        activity.requestWindowFeature(Window.FEATURE_NO_TITLE);

    }/*ww  w . j  a  v a  2  s  . com*/

}

Related Tutorials