Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI doesn't scale on custom resolutions #26

Open
ViRb3 opened this issue May 22, 2019 · 4 comments
Open

GUI doesn't scale on custom resolutions #26

ViRb3 opened this issue May 22, 2019 · 4 comments

Comments

@ViRb3
Copy link

ViRb3 commented May 22, 2019

Running OnePlus 5T here with OmniROM. I have disabled the navigation bar and I use gestures. The GUI (at least version 2.2) has a black bar on the bottom, which is a result of the odd resolution that my phone has with nav bar disabled. There is an AndroidManifest property that can be added to solve this, trying to find it right now. Most ROMs will scale no matter the availability of this property, but OmniROM and some others don't.

@ViRb3 ViRb3 changed the title Doesn't scale on custom resolutions GUI doesn't scale on custom resolutions May 22, 2019
@james34602
Copy link
Owner

You could try to report OmniROM, hopefully, you get an answer from them.
I don't make any mod, can't tell what customization will break which part of the system, sorry about that.

@ViRb3
Copy link
Author

ViRb3 commented May 29, 2019

The black bar is expected AOSP behavior which most custom ROMs override by default. Sadly, OmniROM is not one of them, but it is still not an issue with the ROM.

@ViRb3
Copy link
Author

ViRb3 commented May 29, 2019

I think this is what you need:

https://developer.android.com/guide/practices/screens-distribution.html
android:resizeableActivity true
Looks like resizeableActivity defaults to true if targeted API > 24.

Or, alternatively:
API >= 26:
<meta-data android:name="android.max_aspect" android:value="5.0" />
API < 26:
<activity android:maxAspectRatio="5.0">

More info:
https://stackoverflow.com/questions/44197453/android-black-bar-below-status-bar-what-is-it

@james34602
Copy link
Owner

I don't have time on the project. You might like to download the GUI code and try it out on your device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants