I have a short question:
How is it possible to convert a String, containing the Id of a Drawable, which is
String idString = "R.drawable.bubblegum";
to an Integer,
idInt
so that I can use that ID for the reference of an image (, which is used in a SimpleAdapter)
So, to make an example, I can't do that:
bubble.setImageDrawable(this.getResources().getDrawable(idString));
//not possible, cause idString is a String an not an Id/Int
So, I have the String that's containing the id, but unfortunately as a String.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…