To make the View Interface of the activity full screen, you only need to hide the top signal bar and the title bar of the activity.
HideCode:
Requestwindowfeature (window. feature_no_title );
Or write it in the configuration file:
Android: theme = "@ Android: style/theme. notitlebar"
For example: <activity Android: Name = ". xxxactivity" Android: theme = "@ Android: style/theme. notitlebar".../>
Code for hiding the signal bar:
Getwindow (). setflags (windowmanager. layoutparams. flag_fullscreen,
Windowmanager. layoutparams. flag_fullscreen );
Note: Some documents are used
Getwindow (). setflags (windowmanager. layoutparams. type_status_bar,
Windowmanager. layoutparams. type_status_bar );
I tested android1.5 and found that if the type_status_bar parameter is called, although the signal bar can be hidden, the button on the interface cannot receive the onclick and ontouch events. I don't know if this is a bug.