Android 全屏代码

来源:互联网 发布:工作室监控软件 编辑:程序博客网 时间:2024/05/21 15:39

1

在setcontentview 之前 使用

                requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

自定义style

<style name="NoTitle_FullScreen" parent="AppBaseTheme">         <item name="android:windowNoTitle">true</item>            <item name="android:windowFullscreen">true</item>      </style> 



0 0
原创粉丝点击