Python 如何将预喷涂屏幕与设备的纵横比相匹配?
我是一个python初学者,正在尝试做一个计算器。我需要一点帮助。当我运行我与Buildozer打包的应用程序时,预启动屏幕将与设备的屏幕大小不匹配。(照片上)我知道我必须在Buildozer.spec文件中执行此操作。我该怎么做?Python 如何将预喷涂屏幕与设备的纵横比相匹配?,python,kivy,buildozer,Python,Kivy,Buildozer,我是一个python初学者,正在尝试做一个计算器。我需要一点帮助。当我运行我与Buildozer打包的应用程序时,预启动屏幕将与设备的屏幕大小不匹配。(照片上)我知道我必须在Buildozer.spec文件中执行此操作。我该怎么做? 在buildozer规范中,您只能设置启动图像的文件名 但您的图像应该为512 x 512px,以适合所有方向和设备 请查看buildozer文档: 如果您是为android开发的,您可以使用android.presplash_color设置presplash背景
在buildozer规范中,您只能设置启动图像的文件名 但您的图像应该为512 x 512px,以适合所有方向和设备 请查看buildozer文档: 如果您是为android开发的,您可以使用android.presplash_color设置presplash背景色
# (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上工作