当我在“drawable”文件夹中加载图像时 - 具有不同的图像大小

时间:2012-09-05 11:38:01

标签: android drawable

面对这样的情况。当我在“drawable”文件夹中加载图像时 - 具有不同的图像大小。下载前的图像相同大小(以像素为单位),以及不同大小(以字节为单位)

解释错误以及如何对抗?

enter image description here

if (menu_item.get_Item_Use() == true ) {

            imageView.setImageResource(R.drawable.ic_menu_arrow_icon);
        } else {    

            imageView.setImageResource(R.drawable.ic_menu_arrow_icon_pressed);


        }

enter image description here

2 个答案:

答案 0 :(得分:0)

理解,android从您下载它们的文件夹中获取第一张图片,然后从您复制的文件中获取

答案 1 :(得分:0)

看看你的截图:有一些奇怪的东西......

  

drawable-hdpi - > ic_menu_arrow_icon_pressed.png

  

drawable-xhdpi - > ic_menu_arrow_icon.png

这些drawable的图标看起来像快捷方式?