简体   繁体   中英

android : get the url from imageview?

I'm using picasso to load image from a server to an ImageView . I would like to know if it's possible to extract that URL from the imageview itself.

Thanks a lot

No, because the ImageView does not know the URL. An ImageView can get its image from any number of Drawable implementations. Picasso will wind up creating a BitmapDrawable , and by that time, the URL is long gone, replaced by the Bitmap .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM