imageview图片基本处理 - Android用Jsoup写了个爬虫,但是模拟登陆需要验证码
PHP中文网
PHP中文网 2017-04-17 17:49:27
0
2
415

我想做一个点击刷新验证码的功能。
目前的逻辑是 fragment->oncreateview的时候,请求一次然后imageview.setImageBitmap
但是在做点击刷新的时候,请求到了,setImageBitmap这句话却没有用了。
请问怎么解决

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
Peter_Zhu

If you crawl to the data, you can use a framework such as picasso to display network images, which is more convenient. There may be some problems if you use imageview directly.

阿神

imageview.setImageBitmap does not support network images. .
You can use various useful image loaders such as Glide/Picasso/Fresco. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template