Code example for CursorAdapter

Methods: getView

0
		colors[1] = context.getResources().getColor(R.color.scheme_variation1_color);
	} 
 
	@Override 
	public View getView(final int position, final View convertView, final ViewGroup parent) {
		final View view = super.getView(position, convertView, parent);
 
		view.setBackgroundColor(colors[position % 2]);
 
		return view;
	} 
 
	@Override 
	public void bindView(final View view, final Context context, final Cursor cursor) {
		final ViewHolder holder = (ViewHolder) view.getTag();
		//		if (holder == null) { 
		//			holder = new ViewHolder(); 
		// 
		//			holder.id = (TextView) view.findViewById(R.id.list_id); 
		//			holder.symbol = (TextView) view.findViewById(R.id.list_symbol); 
		//			holder.logo = (ImageView) view.findViewById(R.id.image);