I want to change Custom Listview
's each Item Background Color. So with Adapter, I use getView()
but It is not working. How to do this ?
My Code is as below :
adapter = new SimpleAdapter(this, aaReportData, R.layout.report_card1, new String[] { "Topic" }, new int[] { R.id.tvTopic}) {
@Override
public View getView(int position, View convertView,
ViewGroup parent) {
// TODO Auto-generated method stub
convertView.setBackgroundColor(R.color.lightish);
return convertView;
}
};