@Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(LAYOUT_INFLATER_SERVICE); View rowView = inflater.inflate(resource, parent, false); TextView textViewName = (TextView) rowView.findViewById(R.id.textViewCommodityName); TextView textViewType = (TextView) rowView.findViewById(R.id.textViewType); TextView textViewReason = (TextView) rowView.findViewById(R.id.textViewReason); TextView textViewAdjustedQuantity = (TextView) rowView.findViewById(R.id.textViewAdjustedQuantity); TextView textViewSOH = (TextView) rowView.findViewById(R.id.textViewSOH); Adjustment adjustment = getItem(position); textViewName.setText(adjustment.getCommodity().getName()); textViewType.setText(adjustment.getType()); textViewReason.setText(adjustment.getReason()); textViewAdjustedQuantity.setText(String.valueOf(adjustment.getQuantity())); textViewSOH.setText(String.valueOf(adjustment.getNewStockOnHand())); return rowView; }