Detect Mi 9 full screen gesture mode programmatically - Xiaomi Mi 9 SE Questions & Answers

Hello everyone,
I'm writing an application which requires the height of screen to render. The problem is that I couldn't find any android's package to know if the full screen gesture mode was turned on or off to calculate the real height of the screen. Is there any way to check that mode, or even better, to get the real height that I can display my content?
Thank you very much!

Related

possible idea about delaying screen burn-in for the softkey?

I'm currently using cm9 nightly build and everything works pretty well.
I know that in AOKP we can change the on-screen navibar's colour, size etc and I think it is a great feature. However I just figure out an alternative way to further delay the screen burn-in, sorry I'm a noob i don't know jack about coding...
Is it possible that, in each time, when you turn on your screen, your navibar's keys colour will change randomly. For example, when you turn on your screen, the keys are yellow, you turn off your screen and turn on it again, this time the keys are red etc.
With AOPK, you can disable the Nav Bar and change transparency. Enabling 180* rotation the Nav Bar follows. You can enable Nav Bar options in the Power Menu as well, but that's not exactly convenience.
There is also this gesture app LMT, but I don't use it: http://forum.xda-developers.com/showthread.php?t=1330150
I just hide the top and bottom bar each day with aokp, browse the web with total full screen, and my burn in is gone. Just need to exercise those pixels is all.
The power button menu has a show/hide nav button shortcut, so easy to do.
How long would it take for burn in? Back on my Samsung Vibrant, never had that issue, and it was Super Amoled.
I don't do any fancy things like you guys do. I just rotate my phone from portrait to landscape to where the nav bar is next to the front cam. I do this every time i'm on landscape. That way all the pixels get used/exercised. I don't suffer from any burn in had my phone since Feb.
Andie00 said:
I don't do any fancy things like you guys do. I just rotate my phone from portrait to landscape to where the nav bar is next to the front cam. I do this every time i'm on landscape. That way all the pixels get used/exercised. I don't suffer from any burn in had my phone since Feb.
Click to expand...
Click to collapse
that's a great idea, we can also use our phone upside down with the option rotate 180 degree on. lolol I can't stop laughing when I see myself using my phone upside down lol
ohcanada said:
that's a great idea, we can also use our phone upside down with the option rotate 180 degree on. lolol I can't stop laughing when I see myself using my phone upside down lol
Click to expand...
Click to collapse
Glad I could help Since the front of the phone is pretty much all black doesn't even make a difference to how it looks (cam on the left or right or even down )

[Q] Disable quick circle clock/apps but keep the lock screen when closed ??

I recently change my resolution and DPI on my g3 D855.
I have the quick circle cover wich now is kind of useless.
Is it possible to disable the function to have ap and clock appear on the screen, while still using the cover to open/lock the screen ?

Is it possible to cast/screen mirror only part of the screen?

I have a N7(running marshmallow) setup to do screen mirroring to a TV for displaying documents in a conference room. But the N7's ratio causes wasted TV real estate because of black bars on the sides, nav bar on the bottom and status bar at the top.
In my current solution I've resized the display to 1920x1080 and changed the density so everything looks right. I've also removed the nav bar and am using pie controls. This causes a couple problems though, any action that requires a swipe down/up from the edge of the screen doesn't work(unless you are very precise with where you start your swipe), and some of my users are struggling with pie controls(they'll eventually get used to it, I think). But...
The perfect solution would be if I could have it cast only the 1920x1080 portion of the screen which would eliminate the black bars and most of the nav bar from showing on the tv. Is there anyway to modify the screen area that is being cast?
If not is there at least a fix for the swipe up/down when the display is smaller than the physical screen?

2 XL Always on display clock position issue

Hello guys!
I think found an issue on my 'Always on display'.
Normally the position of the clock is close to the central middle, but this morning i found my time has been moved to the up for a distance, so i notice this clock just doesn't look right
i don't know what I've done and i didn't find any setting option.
Did you activate screen saver?
It move the clock around
parakleet said:
Did you activate screen saver?
It move the clock around
Click to expand...
Click to collapse
Thanks for your reply!
My screen saver is active and it has a default option 'while docked'.
Should i turn off them?
it has nothing to do with the screensaver. the movement is normal and prevents burn-in. i'm surprised nobody has said this already.
prokrypt said:
it has nothing to do with the screensaver. the movement is normal and prevents burn-in. i'm surprised nobody has said this already.
Click to expand...
Click to collapse
There is a separate clock with the screen saver that moves it all over the screen.
The normal clock on the ambient display is always in the same spot, just has pixels alternate on and off to lower the chance of burn in.
ilal2ielli said:
There is a separate clock with the screen saver that moves it all over the screen.
The normal clock on the ambient display is always in the same spot, just has pixels alternate on and off to lower the chance of burn in.
Click to expand...
Click to collapse
The screensaver clock hops to a random place every minute. The always-on display clock, as far as I remember, moves one pixel at a time, bouncing around the screen (?).

Landscape notch area usage.

I found a problem with some apps that run exclusively in landscape mode, the notch are is not used.
I, unlike others, am a fan of the notch, and I always want to use the full real estate of the screen. Even the launcher refuses to use that zone while in landscape mode... And while most people hate the notch, remember one thing... we are rocking IPS not OLED... so while the notch is off, you can still see light bleed from it, which for me, it's annoying as hell.
Is there a way to force apps to use that zone while landscape? I came across discussions from essential phone and oneplus and they can natively (because customization level) force apps into full screen mode.
TheoXSD said:
Is there a way to force apps to use that zone while landscape?
Click to expand...
Click to collapse
This Magisk module will do it.
https://forum.xda-developers.com/mi-a2-lite/themes/magisk-module-notch-killer-ignore-t3894060
It's a system-wide toggle though, not a per-app toggle.

Categories

Resources