2中方法
在AndroidManifest.xml中
<activity android:name=””
…
android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”/>
程序里
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
…