英文:
My application does not display in full screen on android
问题
我想在我的三星A13手机上以全屏模式显示我的应用程序。然而,无论我做什么,它似乎都不行:手机上的时间和导航系统仍然可见。我在Ubuntu Mate 20.04上使用Buildozer编译kivy成apk文件。
我尝试过:
from kivy.config import Config
Config.set('graphics', 'width', '491')
Config.set('graphics', 'height', '1000')
Config.set('graphics', 'resizable', '0')
Config.set('graphics', 'borderless', '1')
Config.set('graphics', 'fullscreen', 'True')
在我的计算机上,显示是全屏的,但在手机上不是。
from kivy.config import Config
Config.set('graphics', 'width', '491')
Config.set('graphics', 'height', '1000')
Config.set('graphics', 'resizable', '0')
Config.set('graphics', 'borderless', '1')
from kivy.core.window import Window
Window.fullscreen = True
这会导致我的计算机出现问题,应用程序不可见。在我的手机上没有可见的效果。
如何在Android上以全屏模式显示我的应用程序?
英文:
I want to display my application on my samsung A13 phone in full screen mode. However, no matter what I do, it doesn't want to: the phone's time and navigation system remain visible. I use Buildozer on Ubuntu Mate 20.04 to compile kivy in apk file .
I have tried :
from kivy.config import Config
Config.set('graphics', 'width', '491')
Config.set('graphics', 'height', '1000')
Config.set('graphics', 'resizable', '0')
Config.set('graphics', 'borderless', '1')
Config.set('graphics', 'fullscreen', 'True')
On my pc the display is full screen, on my phone not.
from kivy.config import Config
Config.set('graphics', 'width', '491')
Config.set('graphics', 'height', '1000')
Config.set('graphics', 'resizable', '0')
Config.set('graphics', 'borderless', '1')
from kivy.core.window import Window
Window.fullscreen = True
It bugs my pc and the application is not visible. On my phone no visible effect.
How to display in full screen mode my application on android?
答案1
得分: 1
[solved]
我必须使用它来编辑buildozer.spec文件:
fullscreen = True
英文:
[solved]
I have to edit the buildozer.spec with it:
fullscreen = True
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论