【发布时间】:2012-10-17 17:36:24
【问题描述】:
我有以下代码可以从我的 Android 设备上的目录中获取我的 JPG 文件:
File f = new File(cacheDir, fn);
如何将f 放入 ImageView 中?
ImageView imgView = (ImageView)header.findViewById(R.id.imvCover);
// what call do I make here?
// this obviously is not correct and just for example.
imgView.setToFile(f);
【问题讨论】:
标签: java android android-imageview android-file