参考http://blog.csdn.net/wuyinlei/article/details/50564274 主要在Oncreate中判断一下当前sdk版本号,然后使用设置window的flag就可以