Remove the title bar:
Requestwindowfeature (window. feature_no_title );
This is what the API says:
Int feature_no_title flag for the "No title" feature, turning off the title at the top of the screen.
Full Screen:
Getwindow (). addflags (windowmanager. layoutparams. flag_fullscreen );
This is what the API says:
Int flag_fullscreen window flag: Hide all screen decorations (e.g.
The screen has no boundary limitations (the window can be extended out of the screen ):
Getwindow (). addflags (windowmanager. layoutparams. flag_layout_no_limits );
This is what the API says:
Int flag_layout_no_limits window flag: Allow window to extend outside of the screen.
Usage:
CopyCode The Code is as follows: @ override
Protected void oncreate (bundle savedinstancestate ){
// Todo auto-generated method stub
Super. oncreate (savedinstancestate );
Requestwindowfeature (window. feature_no_title );
Getwindow (). addflags (windowmanager. layoutparams. flag_fullscreen );
Getwindow (). addflags (windowmanager. layoutparams. flag_layout_no_limits );
Setcontentview (R. layout. newslists );
Newslistlayout = findviewbyid (R. Id. newslistlayout );
Newslistlayout. setbackgroundcolor (color. Magenta );
Newsnamelist = (listview) findviewbyid (R. Id. newsnamelist );
Model = new model (0, 6 );
Namelistadapter = new newsnamelistadapter (this, model );
Newsnamelist. setadapter (namelistadapter );
Showpage = (textview) findviewbyid (R. Id. newslistshowpage );
Updatepage (model. getindex ());
}