If you want to, you can hide the title bar of the Activity. You only need to call the requestWindowFeature () method and pass the constant Window. FEATURE_NO_TITLE.
Package net. horsttnann. Activity101;
Import net. horsttnann. Activity101.R;
Import android. app. Activity;
Import android. OS. Bundle;
Import android. util. Log;
Import android. view. Window;
Public class Activity101Activity extends Activity {
String tag = "Lifecycle ";
/** Called when the activity is first created .*/
@ Override
Public void onCreate (Bundle savedInstanceState ){
Super. onCreate (savedInstanceState );
// --- Hides the title bar ---
RequestWindowFeature (Window. FEATURE_NO_TITLE );
SetContentView (R. layout. main );
}
}
Package net. horsttnann. Activity101;
Import net. horsttnann. Activity101.R;
Import android. app. Activity;
Import android. OS. Bundle;
Import android. util. Log;
Import android. view. Window;
Public class Activity101Activity extends Activity {
String tag = "Lifecycle"; www.2cto.com
/** Called when the activity is first created .*/
@ Override
Public void onCreate (Bundle savedInstanceState ){
Super. onCreate (savedInstanceState );
// --- Hides the title bar ---
RequestWindowFeature (Window. FEATURE_NO_TITLE );
SetContentView (R. layout. main );
}
}
From manoel's column