简体   繁体   中英

Kivy Can I remove kivy loading screen when open app in android?

After deploy my android app created by using kivy to android. I open app it shows kivy loading screen before app open. Can I remove kivy loading screen from my app?

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
 def build(self):
  return Label(text='Test')

MyApp().run()

This screen is part of the python-for-android process, not something you can directly modify in your kivy app. However, you can change what image is displayed with the --presplash option for build.py. If using buildozer, you would instead set the presplash.filename token in your buildozer.spec file.

Something like presplash.filename = 'image.png"

As stated in this post:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM