Enabling edge-to-edge mode in QML apps
Jack Hill
jackhill3103 at gmail.com
Wed Sep 11 22:22:55 BST 2024
Hi all,
I'm wondering if anyone here has tried to enable edge-to-edge mode for QML apps, and whether they were successful.
I've briefly looked into implementing edge-to-edge for Elisa but it seems to be incompatible with the current implementation of QtActivity:
* `enableEdgeToEdge` is not usable because `QtActivity` does not extend `ComponentActivity`
* `WindowCompat.setDecorFitsSystemWindows(getWindow(), false);` also doesn't seem to work because `QtActivity` calls the conflicting method `setSystemUiVisibility` (at least, I haven't figured out how to make it work yet)
Does anyone know if there is an older Android API to achieve the same effect? Any advice on this is greatly appreciated.
Btw I also noticed the new KWindowInsetsController will eventually have to be ported to use edge-to-edge (`setStatusBarColor` is now deprecated), so maybe this topic will be interesting to all KDE Android developers.
Cheers,
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-android/attachments/20240911/27ac0579/attachment.htm>
More information about the KDE-Android
mailing list