私は Web から写真をダウンロードし、キャッシュに保存しました。さて、XMLで写真を表示する方法。次のように保存された写真:
/data/data/com.example.app/cache/wpta_i.jpeg
ポジションによって変わります。私のXMLは次のとおりです。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
</ImageView>
</LinearLayout>
キャッシュから画像を読み込んで表示するにはどうすればよいですか?