哪里是API调用做"熄灯模式&​​QUOT;在蜂窝? [英] Where is API call to do "lights out mode" in honeycomb?

查看:125
本文介绍了哪里是API调用做"熄灯模式&​​QUOT;在蜂窝?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个游戏,想拥有完整的画面本身。

I am working on a game and would like to have the full screen to itself.

没有人也找到了一种方法,使应用程序进入全屏幕的Andr​​oid蜂窝preVIEW模拟器?

Did anyone found a way to make the app go full screen on Android Honeycomb preview emulator?

推荐答案

熄灯模式,在充分3.0 SDK已经改变。现在,您可以进入熄灯方式如下:

Lights out mode has changed in the full 3.0 SDK. You can now enter lights out mode as follows:

View v = findViewById(R.id.view_id);
v.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);

您也可以在<一个href="http://developer.android.com/reference/android/view/View.html#setOnSystemUiVisibilityChangeListener%28android.view.View.OnSystemUiVisibilityChangeListener%29">set一个<一href="http://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html">listener在视图被通知上更改系统栏的可见性。

You can also set a listener on the view to be notified on changes to the system bar's visibility.

这篇关于哪里是API调用做&QUOT;熄灯模式&​​QUOT;在蜂窝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆