美好的一天。
在Android上,我有图片资源
我使用代码进行下载:
imageView_1.setImageDrawable(getResources().getDrawable(R.drawable.picture_1));
它运行完美。
但是我该怎么做呢?在变量中使用字符串。
String numer;
numer = "1";
imageView_1.setImageDrawable(getResources().getDrawable(R.drawable.picture_+numer));