android - 壁纸安卓尺寸

标签 android

我需要开发应用程序来设置壁纸。 Android 壁纸的规范是什么?尺寸、mdpi 和 ldpi hdpi?

谢谢,

最佳答案

它们实际上是像素密度的范围。查看:http://developer.android.com/guide/practices/screens_support.html

他们在该页面上给出了近似平均值:

低密度像素:~120dpi

平均分辨率:~160dpi

分辨率:~240dpi

xhdpi: ~320dpi

nodpi:密度无关

tvdpi:~213dpi(主要用于电视,应用不需要它)

编辑 这也可能有用。

To create alternative bitmap drawables for different densities, you should follow the 3:4:6:8 scaling ratio between the four generalized densities. For example, if you have a bitmap drawable that's 48x48 pixels for medium-density screen (the size for a launcher icon), all the different sizes should be:

36x36 for low-density

48x48 for medium-density

72x72 for high-density

96x96 for extra high-density

还有

To help you target some of your designs for different types of devices, here are some numbers for typical screen widths:

320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).

480dp: a tweener tablet like the Streak (480x800 mdpi).

600dp: a 7” tablet (600x1024 mdpi).

720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc).

关于android - 壁纸安卓尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11433256/

相关文章:

java - JSON 响应不起作用,不知道问题所在

java - 单击时显示 View ( Activity )中相关的数据

Android - 收到通知但没有弹出通知(前景)

java - 检测用户手指触摸的大小

android - 未设置 Kotlin Dagger 模块

android - 如何在不取消滚动的情况下检测 TextView 上的 throw ?

android - 如何通过adb工具使用Android上的应用程序?

java - 简单的 smack jabber 程序需要很长时间才能在 android 上连接

java - XML 解析器中出现此错误的原因是什么?

java - 改变位图的颜色