![](/img/trans.png)
[英]Reducing the width/height of an image to fit a given aspect ratio. How? - Python image thumbnails
[英]How to fit presplash screen to the aspect ratio of the device?
在 buildozer 規范中,您只能設置啟動圖像的文件名。
但是您的圖像應該是 512 x 512px 以適應所有方向和設備。
看一下 buildozer 文檔:
https://buildozer.readthedocs.io/en/latest/specifications.html
如果您為 android 開發,您可以使用 android.presplash_color 設置預啟動背景顏色。
# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
android.presplash_color = #FFFFFF
例如,如果您使用具有 1:1 縱橫比的漂亮透明初始圖像並設置漂亮的藍色背景,它將適用於許多設備和 Orinetations。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.