In my customized list view items are repeating.position of item is same for all item. code is below
ListAdapter.java-
public class ListAdapter ex
Make sure the convertView is not null. Hence place all code after the if(convertView == null){ } which ensures you have a convertView whose value is not null, by inflating from context if so.
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
if (convertView == null) {
LayoutInflater inflater = LayoutInflater.from(context);
convertView = inflater.inflate(R.layout.list_menu, parent, false);
}
TextView mText=(TextView) convertView.findViewById(R.id.appName);
ImageView mImage=(ImageView) convertView.findViewById(R.id.appIcon);
CheckBox mCheckBox=(CheckBox) convertView.findViewById(R.id.mCheckbox);
mText.setText(mName.get(position));
mImage.setImageDrawable(mIcon.get(position));
return convertView;
}