Android: How to stop Android 1.6+ from scaling images

前端 未结 4 416
半阙折子戏
半阙折子戏 2021-01-03 17:09

I updated my build to build against Android 1.6, and now my bitmaps are scaled down on high density screens. I do NOT want this behavior. I gave this a shot:

http://

4条回答
  •  青春惊慌失措
    2021-01-03 18:00

    In order to have an image not scaled when loading it from a resource (e.g. with BitmapFactory.decodeResource) you have to locate it in res/drawable-nodpi instead of the usual drawable, drawable-ldpi and so on.

提交回复
热议问题