PhoneGap的 - Android的开机画面 - 中心徽标 [英] Phonegap - Android Splash Screen - Centre Logo

查看:110
本文介绍了PhoneGap的 - Android的开机画面 - 中心徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人能告诉我如何设置一个启动画面进行跨领域分辨率?
我试图重新调整大小的PNG文件,以不同的尺寸和放置图像中的LDPI,MDPI,华电国际的文件夹,但图像看起来仍然拉伸/挤压取决于设备。

有没有一种方法,在画面的中心标志用白色背景,我很高兴,甚至只要用标志之一大小,因为它坐落在中间,看起来ok¬?

没有任何人有什么建议吗?结果
干杯
保罗


解决方案

你有没有听说过

/使用标志的9补丁版本考虑?阿九片图像允许您定义可拉伸的图像区域。如果你有一个白色的背景创建的标志PNG文件,然后将白色面积伸展的,它会然后填写你的容器很好,但形象的标志一部分,不会扭曲的。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆