What is this for? requestWindowFeature (Window.FEATURE_NO_TITLE);

0

I was studying a webservice for android to consume and I came across it:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE); 
    setContentView(R.layout.loginuser);

    }

Why should I use
requestWindowFeature (Window.FEATURE_NO_TITLE);  ?

    
asked by anonymous 02.12.2016 / 17:26

2 answers

1

To remove the bar status from the android. Some gaming apps do this to stay full screen. Or to make the slash screen with the logo alone on the screen.

    
02.12.2016 / 20:06
1

I usually use this when I want to create a custom AlertDialog. So, this code to remove that title bar. Well, if I do not add this code, and the title bar will have the white background.

    
02.12.2016 / 20:29