Android系统。 imageView分配中的顺序错误

时间:2013-07-17 10:49:04

标签: android imageview

应用程序中的一个视图必须连续显示一些图片。但它们的显示顺序错误。在这个方法中,我得到图像的名称。我重命名图像后没有任何改变。有什么想法吗?

void childParseAttributes(final Properties attributes) {
// ...
        String image = attributes.getProperty("icon");
        if (image.indexOf("png") != -1)
            image = image.substring(0, image.length() - 4);
        int i = Utils.getImageId(image);
        if (i > 0) {
            ImageView icon = (ImageView) findViewById(R.id.footer_icon);
            icon.setBackgroundResource(i);
// ...
}

logcat的

07-17 14:18:35.553: D/some_app.image(504): card_lock id=2130837532

07-17 14:18:35.562: D/some_app.image(504): card_unlock id=2130837537

我已将“card_lock”重命名为“card_unlock”,反之亦然。新card_lock的id为2130837532,新card_unlock的id为2130837537,即没有任何变化。

0 个答案:

没有答案