私のアプリでは、xmlファイルを使用してデータを保存しており、画像はドローアブルフォルダーに保存されています。これらを「リンク」したいと思います。つまり、xmlファイル内の各オブジェクトは、ドローアブルフォルダー内の特定の画像を参照します。どうすればこれを達成できますか?ありがとう!
<contacts>
<contact>
<name>Joe</name>
<picture>R.drawable.joe_pic</picture>
</contact>
<contact>
<name>Dean</name>
<picture>R.drawable.dean_pic</picture>
</contact>
</contacts>