If you like, you can hide the title bar of the Activity. To do this, you only need to use the requestWindowFeature () method and pass the Window. FEATURE_NO_TITLE constant value.
[Java]
Package net. learn2develop. Activity101;
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 );
Log. d (tag, "In the onCreate () event ");
}
}
Package net. learn2develop. Activity101;
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 );
Log. d (tag, "In the onCreate () event ");
}
}
:
From horsttnann