0

Is it possible to somehow do this following:

view.setIconResource(getString(R.string.wi_alien));

...in a way like this?

String someString = "wi_alien";
view.setIconResource(getString(R.string.someString));

The part below does not work obviously, you get the "cannot resolve symbol String". Is something like this possible?

CJR
  • 3,174
  • 6
  • 34
  • 78

0 Answers0