I have a spinner with the items as below
ArrayAdapter<Message> arrayadapter = new ArrayAdapter<Message>(activity, android.R.layout.simple_spinner_item, messages);
arrayadapter.setDropDownViewResource(R.layout.textview);
i want to give altenate colors to the listitems.how can i do that.Any help is appreciated