我想加載一個svg文件下載到與畢加索的SD卡,但它不起作用。如何將SD卡中的SVG文件加載到ImageView中?
File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath()+"/secciones.svg");
Picasso.with(context).load(file).into(holder.ivIcon);
我以前發現這個問題,但他從資產加載文件。 Load a vector drawable into imageview from sd card
是否有可能加載下載到的ImageView的.SVG?
首先,'getExternalStoragePublicDirectory()'無關與[移動存儲](https://commonsware.com/blog/2014/04/09/storage-situation-removable -storage.html)在大多數Android設備上。其次,我不認爲畢加索支持SVG。 – CommonsWare