i am doing an app loading currently taken images in the list view, I am able to load the images in the list view,but the problem is the images are repeatedly viewing in the list after 3 items and some tine its view then and there in the imageview.but my need is to add the image in the list when the user took,please help me thanks in advance. @Override public View getView(int position, View convertview, ViewGroup parent) { View vi = convertview;
try {
// TODO Auto-generated method stub
ViewHolder holder;
if (vi == null) {
holder = new ViewHolder();
vi = inflater.inflate(R.layout.my_trip_list_view_items, null);
holder.place_name = (TextView) vi.findViewById(R.id.my_trip_list_view_place_name);
holder.Day = (TextView) vi.findViewById(R.id.my_trip_list_view_date_time);
holder.place_images = (ImageView) vi.findViewById(R.id.my_trip_list_view_Image_view);
//*Note svg*//*
holder. place_images.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
menu_svg = SVGParser.getSVGFromResource(context.getResources(), R.raw.map_2);
holder.place_images.setImageDrawable(menu_svg.createPictureDrawable());
vi.setTag(holder);
} else {
holder = (ViewHolder) vi.getTag();
}
// images_view = new MyTrip_getmethod();
String location_name = Location.get(position).toString();
System.out.println("location_name>>>>>>>>>>>" + location_name);
holder.place_name.setText(location_name);
System.out.println("location_name>>>>>>>>>>>" + holder.place_name);
holder.Day.setText(day.get(position).toString());
System.out.println(" ### imgFile----" + image);
holder.place_images.setImageBitmap(image.get(position));
System.out.println("location_name>>im>>>>>>>>>>>" + holder.place_images);
notifyDataSetChanged();
} catch (Exception e) {
e.printStackTrace();
}
return vi;
}