Android: How to stop Android 1.6+ from scaling images

前端 未结 4 402
半阙折子戏
半阙折子戏 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 17:45

    Wrapping the bitmap with a Drawable is the problem. The Drawable scales the Bitmap. Instead of using a Drawable, assign the Bitmap to the ImageView directly using imageView.setImageBitmap(Bitmap).

提交回复
热议问题