get a drawable resource
// name = "cj" or other text based on card suit and rank
Field f = R.drawable.class.getDeclaredField(name);
int id = f.getInt(nul);
cardImage.setImageResource(id);
from http://blog.bumblemachine.com/archives/15
// name = "cj" or other text based on card suit and rank
Field f = R.drawable.class.getDeclaredField(name);
int id = f.getInt(nul);
cardImage.setImageResource(id);
from http://blog.bumblemachine.com/archives/15
Comments