我的问题是我无法想出如何在 Android 中支持多屏幕。我已经阅读了很多次 android 文档以及许多博客和文章:
- http://developer.android.com/guide/practices/screens_support.html
- http://mobile.tutsplus.com/tutorials/mobile-design-tutorials/how-to-get-started-in-android-app-design/
- http://www.androidhive.info/
但我什至无法决定如何制作适合大多数屏幕的背景图片
- 小
- 正常
- 大
- 超大
dentry :
- ldpi
- 平均发展指数
- 分辨率
- xdpi
最佳答案
首先,不推荐使用全屏图像作为背景,因为它可能会导致内存问题。即使有人需要使用全屏图像作为背景,也可以通过以下方式对其进行缩放:
- 使用支持的最大尺寸的图片
- 将其保持在中心并在其周围添加彩色/渐变边框
- 可以将其拉伸(stretch)到全屏(不会保持纵横比)
如需深入讨论,请阅读:
http://vinsol.com/blog/2014/11/20/tips-for-designers-from-a-developer/
关于android - 在 Android 中支持多屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16059427/