0
我有下面的代碼讓我的Android設備上的目錄我的JPG文件:如何從Android的ImageView中的緩存目錄中放置文件?
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);
didnt它得到解決? –
'fn'是什麼? @ethan艾倫 –