@Override public View getView(int position, View convertView, ViewGroup parent) { View view = mInflater.inflate(mLayoutRes, parent, false); if (convertView == null) { view = mInflater.inflate(mLayoutRes, parent, false); } else { view = convertView; } TextView name = (TextView) view.findViewById(R.id.CRSITEM_name); TextView desc = (TextView) view.findViewById(R.id.CRSITEM_desc); TextView priority = (TextView) view.findViewById(R.id.CRSITEM_priority); ImageView btnDown = (ImageView) view.findViewById(R.id.CRSITEM_btnDown); ImageView btnUp = (ImageView) view.findViewById(R.id.CRSITEM_btnUo); final ObjectiveDTO p = mList.get(position); final int index = position; name.setText(p.getObjectiveName()); desc.setText(p.getDescription()); Statics.setRobotoFontRegular(ctx, desc); Statics.setRobotoFontBold(ctx, name); if (position > 9) { priority.setText("" + (position + 1)); } else { priority.setText("0" + (position + 1)); } btnDown.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { vb.vibrate(100); listener.onDownArrowTapped(index); } }); btnUp.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { vb.vibrate(100); listener.onUpArrowTapped(index); } }); RowColor.setColor(view, position); animateView(view); return (view); }