首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Andriod拓步之 兑现全屏

2012-09-28 
Andriod拓步之 实现全屏关于本文内容 是从cheney_love的文中学习得知,会继续关注你的android文章的,thanks

Andriod拓步之 实现全屏
关于本文内容 是从cheney_love的文中学习得知,会继续关注你的android文章的,thanks

如题,看代码就清晰了


 public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        //去掉信息栏,比如时间,电量等图标信息        this.requestWindowFeature(Window.FEATURE_NO_TITLE);        //去掉标题栏,即string.xml中<string name="app_name">xxxxx</string>的xxxxx被去掉        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);        setContentView(R.layout.main);    }

热点排行