Hello great forum
Im new to android field, i have a little java experience
so excuse me if my question was simple ...
Thanks in advance
I have a variable called "position" which is an output of ListAdapter, as you see am trying to use this variable to view an image based on it, see my approach
the final output should be like (assuming that "position" variable was 1)
ofcourse this is wrong because I should use the id, not a string...
can anybody help ?
Im new to android field, i have a little java experience

so excuse me if my question was simple ...
Thanks in advance
I have a variable called "position" which is an output of ListAdapter, as you see am trying to use this variable to view an image based on it, see my approach
Code:
holder.imageView.setImageResource(R.drawable.pic" + position + "_1");
Code:
holder.imageView.setImageResource(R.drawable.pic1_1);
can anybody help ?