代码之家  ›  专栏  ›  技术社区  ›  Bahadır Yağan

高密度屏幕上的模糊文本

  •  2
  • Bahadır Yağan  · 技术社区  · 14 年前

    我为1.5开发的应用程序在HTC欲望等高密度屏幕上显示文本模糊。下面是我的应用程序(bad.png)的特写屏幕截图和一个更好的示例(good.png)

    alt text http://taypo.com/bad.png alt text http://taypo.com/good.png

    canvas.drawText

    1 回复  |  直到 14 年前
        1
  •  1
  •   Francesco Laurita    14 年前

    You should read this guide

    Basically, if you want support 1.5 devices you should build your project against SDK >= 1.6 with the minSdkVersion setted to 3:

    <uses-sdk
            android:minSdkVersion="3"
            android:targetSdkVersion="4"
        />
    

    On this way you will be able to have differents drawable resources for differents 屏幕尺寸/密度不打破与Android 1.5的可压缩性 假设所有屏幕都是“MDP”。 obviously you can't use any api released after sdk version 3