Code example for ResourceCursorAdapter

0
	 */ 
	private SparseArray<Map<String, Object>> searchOrderSelection;
	 
	public OrderSearchCursorAdapter(OrderFeature orderFeature, Context context, 
			int layout, Cursor c, int flags) {
		super(context, layout, c, flags);
		 
		mContext = context;
		mOrderFeature = orderFeature;
		searchOrderSelection = new SparseArray<Map<String, Object>>();
		mViewHolderMap = new SparseArray<OrderSearchCursorAdapter.ViewHolder>();
	} 
	 
	@Override 
	public View newView(Context context, Cursor cursor, ViewGroup parent) {
		LayoutInflater inflater = LayoutInflater.from(context);
		View convertView = inflater.inflate(R.layout.catalog_search_result_item, null);
		 
		ViewHolder holder = new ViewHolder();
		holder.categoryView = (TextView)convertView.findViewById(R.id.catalog_search_result_category);
		holder.itemView = (TextView)convertView.findViewById(R.id.catalog_search_result_item);