ImageView停止显示图片

时间:2016-02-20 19:58:22

标签: android image imageview

ImageView突然停止显示图像。它显示图像然后突然停止显示图像(不知道我做了什么)

  

以下是它在设计视图中的外观

enter image description here

  

图像存在于res / drawable

enter image description here

  

ImageView标签

<ImageView
        android:id="@+id/background"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/background" />

我试过干净的项目仍然没有解决。设计视图不显示任何渲染错误

1 个答案:

答案 0 :(得分:0)

尝试从background.png文件夹中删除drawable-xhdpi并进入常规drawable文件夹。这看起来像是我的错误。如果在Android Studio中很难,您可以尝试在Windows资源管理器中执行此操作。只需查看项目文件。

相关问题