Android中设置Activity全屏显示有两种方法。
1. 在代码中动态设置。
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,
WindowManager.LayoutParams. FLAG_FULLSCREEN);
2. 在res/values/下,写一个style.xml文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="theme">
<item name="android:windowFullscreen">true</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>