Android系统。如何检测全屏应用程序? [英] Android. How detect fullscreen app?

查看:338
本文介绍了Android系统。如何检测全屏应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在运行全屏应用程序时检测到。 (状态栏是隐藏的)。 如何实现这一点? 谢谢。

I need to detect when running full screen application. (The status bar is hidden). How can this be accomplished? Thank.

推荐答案

由于api11的现在有一种方法来检测,使用一个<一个href="http://developer.android.com/reference/android/view/View.html#setOnSystemUiVisibilityChangeListener%28android.view.View.OnSystemUiVisibilityChangeListener%29"相对=nofollow> View.setOnSystemUiVisibilityChangeListener

As of api11 there is now a way to detect that using a View.setOnSystemUiVisibilityChangeListener

侦听器接口文档说明如下:

The listener interface documentation notes the following:

在状态栏中修改的可视性要调用回调接口定义。该报告全球修改系统UI状态,没有什么应用程序请求。

Interface definition for a callback to be invoked when the status bar changes visibility. This reports global changes to the system UI state, not what the application is requesting.

我不知道是否有一种方法可以做到这一点,以蜂窝状前。

I don't know if there's a way to do it prior to Honeycomb.

这篇关于Android系统。如何检测全屏应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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