@Override public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; RowHolder holder = null; if (row == null) { LayoutInflater inflater = ((Activity) activity).getLayoutInflater(); row = inflater.inflate(layoutResourceId, parent, false); holder = new RowHolder(); holder.imgIcon = (ImageView) row.findViewById(R.id.imgIcon); holder.txtTitle = (TextView) row.findViewById(R.id.txtTitle); holder.imgIcon.setOnClickListener( new BookmarkListener(row, data, position, activity, this.listfragment)); row.setTag(holder); } else { holder = (RowHolder) row.getTag(); } ParsedRow rowItem = data.get(position); holder.txtTitle.setText(rowItem.getTitle()); holder.imgIcon.setImageResource(rowItem.getIcon()); return row; }