0

I have a imageview and a textview in listview. So i am dynamically changed tick mark or without tick mark image.

Please suggest me how to save ticked image position after scroll.

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • here is my code http://notepad.cc/share/Q8AHDqIIy9 – Ashish Parmar Jan 10 '15 at 14:30
  • 2
    It's hard to understand what you want? Can you clarify? Also please add the code to your question, instead of posting an external link. – Rohan Kandwal Jan 10 '15 at 14:35
  • Brother i have two images 1)with Right mark and 2) without Right mark . so i am replacing without Right mark to with Right mark by click an item from listview than i am scroll the listview but after that i got without Right mark image. but i want save that place insort not refresh that – Ashish Parmar Jan 10 '15 at 14:42
  • 1
    Try this http://stackoverflow.com/questions/15301250/adding-image-to-listview-after-listview-item-click – Krish Jan 10 '15 at 14:46
  • So basically you want to retain ListView information after scroll. You can use a integer array containing the image for every position for the ListView. eg- `int[] image = new int[]{R.id.checked, R.id.unchecked,....}`. Then, when you change the image on ListView `ItemClickListener`, change the value of the image array by `image[position] = R.id.unchecked;`. Android will automatically change the images then. – Rohan Kandwal Jan 10 '15 at 15:04

1 Answers1

0

Inflate the item view with null ViewGroup.

        convertView = inflater.inflate(R.layout.row_dialog_list,
                        null);
Sanjeet A
  • 5,171
  • 3
  • 23
  • 40