[Solved] Get resources images from variable
You can define Context inner class MonsterAdapter public class MonsterAdapter extends BaseAdapter{ Context mContext; public MonsterAdapter(Context context, …){ this.mContext = context; … } } then you can use imageView.setImageResource(mContext.getResources().getIdentifier(variableValue, “drawable”, getPackageName())); solved Get resources images from variable