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); }