kivy / kivy/python-for-android

Request: Add option to require manual dismiss of loadingscreen

オープン
#2,981 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature-request recipe
主要言語
Python
スター
8.9k
フォーク
2k
平均マージ
12時間 20分
マージ済み PR(30日)
9

説明

### Description

Users can suffer from a black screen on startup because their app starts slowly. With code refactoring using lazy loading of screens , this can be reduced but I doubt it can be eliminated for anything beyond 'hello world' using a screen manager ( which can't itself be lazy loaded).

From your API doc below I see there is a way to manually stop 'loadingscreen' which I assume could be my lottie file.....
***
__

> Dismissing the splash screen
> **With the SDL2 bootstrap, the app's splash screen may be visible longer than necessary** (with your app already being loaded) due to a limitation with the way we check if the app has properly started. In this case, the splash screen overlaps the app gui for a short time.
>
> To dismiss the loading screen explicitly in your code, use the android module:_

_

```
from android import loadingscreen
loadingscreen.hide_loading_screen()
```

> You can call it e.g. using kivy.clock.Clock.schedule_once to run it in the first active frame of your app, or use the app build method.

****

**My problem is the opposite of the above!** - the splash screen is dismissed too early, leading to several seconds of black screen.

### Request

Add a build option to **Require** using loadingscreen.hide_loading_screen() to kill the loading screen ( perhaps with a long failsafe timeout of say 60s) . Then I can call the above code in on_enter() of my home screen and perhaps eliminate the black screen no matter how long it takes my code to load since the splash will keep running until my code is ready to stop it.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start at the Android loadingscreen module and the build-option handling for the SDL2 bootstrap. Trace how loadingscreen.hide_loading_screen() currently dismisses the splash and how startup timeout behavior is configured. Done means an option keeps the loading screen visible until explicit dismissal while retaining a failsafe timeout, with the requested behavior covered by tests or documented verification.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, python
領域
build-system, mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。