Sunday, March 10, 2013

Android: Hide title bar of window / activity programatically.

At run time, In onCreate() method we can request window feature for hiding the title of the activity/window.

this.requestWindowFeature(Window.FEATURE_NO_TITLE);

Above line must be write before adding the content on the view.

this.requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.my_activity); 

for Importing the references press CTRL+SHIFT+O



No comments:

Post a Comment