问题
is it possible to get the src Value of an ImageView as URI?
Help would be great
回答1:
No. By the time the ImageView
has the image, the source of that image is long gone.
回答2:
If you know what image it is in your drawable, you can do something like this.
String path = Uri.parse("android.resource://my.package.name/" + R.drawable.myimage).toString();
More info - https://stackoverflow.com/a/28505621/2197529
来源:https://stackoverflow.com/questions/37013437/can-i-get-the-src-uri-from-an-imageview