如何设计闪屏图像?
我想显示启动画面图像。我已阅读关于不同目录(ldpi、mdpi、 ...) 在 res/ 下创建,但我不明白,除了创建 240x320、320x480 和 480x800 的相同图像之外,我是否还需要做其他事情来实现良好的效果结果。
谁能建议我哪件事最好做?
I would like to show a splash screen image. I've read Screen compatibility overview about the different directories (ldpi, mdpi, ...) to create under res/ but I've not understood if, other than creating the same image of 240x320, 320x480 and 480x800 I need to do other things to achieve a good result.
Can anyone suggest me which is the best thing to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你描述的就是你需要做的。您需要每个屏幕像素密度组(ldpi、mdpi、hpdi 和 poss xhdpi)的图像
您可以做其他事情吗?
请将 Android 屏幕想象成一个可调整大小的网页 - 它们有各种不同的尺寸和形状,并且你的布局需要拉伸和适应所有内容。
What you describe is what you need to do. You need an image for each screen pixel density group (ldpi, mdpi, hpdi and poss xhdpi)
Other things you can do?
Think of an Android screen like a resizable web page - they come in various different sizes and shapes, and your layout needs to stretch and adapt for all.
就像 Ollie C 所说,我还制作了一个在背景中设置的 9 块,这种方法的唯一问题是你的 Splashscreen 必须具有统一的可拉伸区域。
Like Ollie C said, I also make a 9-patch that I set in background, the only probleme with this methos is that your Splashscreen must have uniform stretchable areas.