0

如何在图像视图中分配文件路径,现在正在使用文件路径在图像视图中动态添加图像,因此我在源图像中的 XML 代码中删除了。尝试在图像视图中分配文件路径,但对我不起作用。我必须尝试这种方式,但不适合我

imageview.SetImageBitmap(BitmapFactory.DecodeFile(Path));

Android.Graphics.Bitmap bmImg = BitmapFactory.DecodeFile(Path);
    imageview.SetImageBitmap(bmImg);

imageview.SetImageURI(Uri.(new File(Path).toString()));
4

0 回答 0