So I'm trying to organize my data into an XML as such:
<hands>
<punch>
<id>1</id>
<move>Reverse Punch</move>
<jap>Gyaku Zuki</jap>
<thumb>2130837505</thumb>
</punch>
</hands>
The data from the XML gets parsed and ends up in a hashmap. I'd like to draw them like so:
thumb.setImageURI(Uri.parse(Main.ROOT + Integer.parseInt(moveList.get(MoveView.KEY_THUMB))));
Is using the ID instead of referencing them via R.drawable.img alright?
Thank you!