带有来自 URL 的图像的 Imageview
我正在寻找一个修改后的 Imageviewclass,它可以下载图像并显示它。 还应该可以显示“下载失败”图像和“加载”图像。 如果有人知道这样的课程请告诉我。
谢谢!
i'm searching for a modified Imageviewclass which downloads a image and displays it.
It should also be possible to display a "download fail"-image and a "load"-image.
If anyone knows a class like this please let me know it.
Thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用此示例,只需在构造函数中传递 Activity 实例并扩展视图类而不是 Activity 类。
网页图像视图
You can use this example, just pass the Activity instance in a constructor and extend the view class instead of the Activity class.
Web Imageview
希望这对你有帮助:
Hope this helps u: