Thursday, 17 January 2013

Hide Status Bar / Title Bar in Android Activity

How to hide the title bar for an Activity in XML with existing custom theme

 If you want to hide the title bar from android activity then use following code in oncreate method of activity.


@Override
protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 requestWindowFeature(Window.FEATURE_NO_TITLE);
 this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
 WindowManager.LayoutParams.FLAG_FULLSCREEN);

 setContentView(R.layout.temp);
 
 
NovaRadix Android Application Development Team
NovaRadix Technology
WWW.NOVARADIX.COM

1 comment:

  1. getWindow().getDecorView().setSystemUiVisibility(View.GONE);

    Try this,It will work

    ReplyDelete

Call web services easily

get source code from here, Download