Android ImageView not loaded

孤人 提交于 2021-02-08 13:01:10

问题


I am using the android imageView and I put the the image into the drawable folder, and changed the imageView source to that image. But it does not show the image in the Preview panel and when I open the picture in the android studio,it show the error like this.

But I can open the picture on my computer desktop. so why there is the error and how to solve it?


回答1:


Sounds like piac.png was not a .png file, you just slapped a .png extension on it and expected it to become a .png file. The problem is likely resolved by opening the file (maybe it was a .jpg) and then saving it as an actual .png file.



来源:https://stackoverflow.com/questions/35797223/android-imageview-not-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!