我的应用在安卓上不能全屏显示。

huangapple go评论60阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年2月19日 14:14:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75498347.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定