---
title: "一些设置"
author: "michael-java"
date: "2011-03-19T11:30:53Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2011-03-19T11:30:53Z"
id: 967348
url: "https://michael-java.iteye.com/blog/967348"
---

// 取消标题  
                requestWindowFeature(Window.FEATURE\_NO\_TITLE);  
                 
// 禁止屏幕休眠  
                getWindow().setFlags(WindowManager.LayoutParams.FLAG\_KEEP\_SCREEN\_ON,  
                                WindowManager.LayoutParams.FLAG\_KEEP\_SCREEN\_ON);  
                 
// 全屏幕  
                getWindow().setFlags(WindowManager.LayoutParams.FLAG\_FULLSCREEN,  
                                WindowManager.LayoutParams.FLAG\_FULLSCREEN);