Your code seem could work like:
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(layout, parent, false);
}
/*
** you intitalize your findeviewbyid after when your view not getting null So its
recreate your inflatore view this is not corect way
*
*/
ImageView profilepic= (ImageView) v.findViewById(R.id.profilepic);
e.g from your code Your code should be intialize view id into convertview==null condtion is met
Person swig=mpeople[position];
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(layout, parent, false);
ImageView profilepic= (ImageView) v.findViewById(R.id.profilepic);
ImageView cell2= (ImageView) v.findViewById(R.id.cell2);
}
cell1.setImageResource(swig.getPics());
cell2.setImageResource(swig.getPics()[1]);