Is there a way to determine if Android app is running full screen?

后端 未结 10 1974
春和景丽
春和景丽 2020-12-31 04:17

i was just wondering if there was a simple way to see if an application running on android is currently in full screen. is there a way to query android to see if you\'re cu

10条回答
  •  孤独总比滥情好
    2020-12-31 04:43

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

    The listener interface documentation notes the following:

    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.

提交回复
热议问题