PhoneGap的 - Android的开机画面 - 中心徽标 [英] Phonegap - Android Splash Screen - Centre Logo
问题描述
任何人能告诉我如何设置一个启动画面进行跨领域分辨率?
我试图重新调整大小的PNG文件,以不同的尺寸和放置图像中的LDPI,MDPI,华电国际的文件夹,但图像看起来仍然拉伸/挤压取决于设备。
有没有一种方法,在画面的中心标志用白色背景,我很高兴,甚至只要用标志之一大小,因为它坐落在中间,看起来ok¬?
没有任何人有什么建议吗?结果
干杯
保罗
解决方案
你有没有听说过
Can anybody advise me on how to setup a splash screen to work cross resolution? I have tried re-sizing a png file to different dimensions and placing the image in the ldpi,mdpi,hdpi folders, but the image still looks stretched/squashed depending on the device.
Is there a way to place a logo centre of the screen with a white background, i'm happy to use one size of logo even as long as it sits in the middle and looks ok¬?
Does anyone have any advice?
Cheers
Paul
Have you heard of/considered using a 9 patch version of the logo? A nine patch image allows you to define areas of an image which can be stretched. If you create your logo png file with a white background and then set the white area as stretchable it will then fill your container nicely but the logo part of the image will not distort at all.
这篇关于PhoneGap的 - Android的开机画面 - 中心徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!