Hi,
Is it possible to number drawables so they can be used depending on a variable defined in java?
For example
someimage.setBackgroundResource(R.drawable.lp1);
I want certain preferences to determine what drawables are used.
Like in this example, if I had some drawables name lp1, lp2, lp3, etc....could I call them with a variable when setting the background resource?
someimage.setBackgroundResource(R.drawable.lp[k]);
The above code won't work.
Any suggestions.
K


