Remove the title bar:
Requestwindowfeature (Window.feature_no_title);
That's what the API says:
int Feature_no_title Flag for the ' NO title ' FEATURE, turning off the TITLE ' at the ' top ' screen.
Full screen:
GetWindow (). Addflags (WindowManager.LayoutParams.FLAG_FULLSCREEN);
That's what the API says:
int Flag_fullscreen Window flag:hide all screen decorations (e.g.
There is no boundary limit on the screen (allows Windows to be extended outside the screen):
GetWindow (). Addflags (WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
That's what the API says:
int flag_layout_no_limits window Flag:allow window to extend outside of the screen.
Usage:
Copy Code code 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 ());
}