Starting from this method:
weatherIconView.setIconResource(getString(R.string.wi_day_sunny));
I would like to use the iconID receiver from an API to call the specific string from the string.xml file:
<string name="wi_00d"></string>
Now, I cannot name the string starting with a number, and the API provides all the iconID's starting with a number. So I tried concatenating "wi_" to the iconID's string, but when I tryed to call the method using that:
iconName = "wi_" + iconId;
weatherIconView.setIconResource(getString(R.string.iconName));
It just does not work (pretty sure I am approaching this the wrong way. Is there a correct way to do this? Or should I try something else?