且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android ImageView在模拟器上显示,但不在设备上显示

更新时间:2023-01-05 08:32:41

我建议您查看是否没有由于加载图像而导致的内存问题.请参阅来自文档的此页面,以减少以下情况下的内存消耗:加载图片.

I'd suggest you to see if there is no memory problem due to loading your image. See this page from doc in order to reduce memory consumption when loading your image.

我也遇到了这个问题,图像是在其他设备上打开的,但在我的手机上没有打开.也许通过正确加载位图,它会起作用.

I had this problem too, the image was opened on other devices but not on my phone. Maybe by properly loading your bitmap, it will works.