@Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.iconrow, null); } Local o = items.get(position); if (o != null) { // poblamos la lista de elementos TextView tt = (TextView) v.findViewById(R.id.row_toptext); TextView tta = (TextView) v.findViewById(R.id.row_bottomtext); ImageView im = (ImageView) v.findViewById(R.id.icon); if (im != null) { im.setImageResource(o.getLocalImage()); } if (tta != null) { tta.setText(o.getLocalMedida()); } if (tt != null) { tt.setText(o.getLocalName()); } } return v; }