android-fullscreen

Galaxy S10, S10+ Full Screen Mode

让人想犯罪 __ 提交于 2020-02-02 10:18:57
问题 How can achieve full screen mode with Samsung Galaxy S10 and S10+, the following code do not work for me: getWindow().getDecorView().setSystemUiVisibility( // Set the content to appear under the system bars so that the // content doesn't resize when the system bars hide and show. SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN // Hide the nav bar and status bar // | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG

How do I make my full-screen overlay remain full-screen after orientation changes?

笑着哭i 提交于 2020-01-04 02:28:29
问题 I am making an app that creates tiny sprite animations that walk around your screen. I have a main activity, with a button "start service". This starts a service, which (in onCreate() ) creates a full-screen view and attaches it to the root window manager. This part works perfectly. It fills the screen, and you can leave the app, and the animations will still be visible over everything. The problem emerges when you rotate the device. Sprites have moved to the middle of the screen, but this is

Full Screen Notification only showing as a Heads Up

自闭症网瘾萝莉.ら 提交于 2019-12-30 02:42:08
问题 I have been banging my head against the table with this problem for 3 days now, please tell me where I have strayed. When I am getting an incoming VoIP call, I am trying to show a full screen notification, just like the PhoneApp does. I am ok with heads up, if the user is in an immersive activity. However, I am getting only a heads up notification, and never getting a full screen. I need to notification to ignore the lock screen as well. Here is what I am doing: String callJson = call.toJson

Receiving hidden status bar/entering a full screen activity event on a Service

两盒软妹~` 提交于 2019-12-29 00:40:51
问题 I have a service that adds some views to the window manager (something like facebook's chat heads). This views stay on top of everything all the time, even when I'm on the camera app. Is it possible to know when some activity (like the camera or a video player) is using full screen so I can hide my views? Edit: There's something called View.OnSystemUiVisibilityChangeListener but it requires API 11. My target is 9, but it looks like this is exactly what I need. Any alternative for API 9? 回答1:

Receiving hidden status bar/entering a full screen activity event on a Service

限于喜欢 提交于 2019-12-29 00:40:36
问题 I have a service that adds some views to the window manager (something like facebook's chat heads). This views stay on top of everything all the time, even when I'm on the camera app. Is it possible to know when some activity (like the camera or a video player) is using full screen so I can hide my views? Edit: There's something called View.OnSystemUiVisibilityChangeListener but it requires API 11. My target is 9, but it looks like this is exactly what I need. Any alternative for API 9? 回答1:

Exiting fullscreen activity sometimes leaves artifacts in action bar and system navigation areas

 ̄綄美尐妖づ 提交于 2019-12-25 02:56:03
问题 I have a normal Activity (A) with visible Action Bar which launches another fullscreen activity (B) to display photos. When (B) finishes and activity (A) is displayed back sometimes I can see the following picture: Please note visual distortion of action bar and navigation areas. The above artifacts disappear only when I start interacting with the activity, scrolling it, etc. Full screen activity code: protected void onCreate(Bundle savedInstanceState) { supportRequestWindowFeature(Window

android Navigation Bar hiding and persantage of usable screen overlap

ぐ巨炮叔叔 提交于 2019-12-23 15:44:52
问题 My problem is about persantage of usable screen . My application working well normally but ı assume that if ı change dimension of screen (for example galaxy s8+) it is down. this is how is working fine strong text and this is the wrong one the problem related with NavigationBar. I tried to set MACHPARENT params and normally I use programmatically DisplayMetrics metrics = this.getResources().getDisplayMetrics(); width = metrics.widthPixels; height = metrics.heightPixels - Utils

Rotate screen when HTML5 video playing in fullscreen

99封情书 提交于 2019-12-22 09:33:39
问题 First of all, i would like to apologize for my bad level in english, and for all the mistakes i might have done in this post. I'm also a "junior" in Android devloppement (i'm doing this on my free time), i'm not good and experienced enough yet ^^ so sorry if i might have some difficulties to understands the answer you might give me. So what i'm doing ? I'm creating a simple Android App. It's just a Webview to load my website. My website is just a random Youtube video player. First i had the