want to create listview with 2 component in every row 1st progressbar and 2nd Button that display a current value of progressbar.
for that i m using custom list view the problem is that when i scroll the listview the progressbar cant maintain it’s previous state.
Please help me out to solve this problem.
Thanks In Advance.
you can do that by using following logic.
1 create one arraylist for example.
2 now in custom list adapter class constructor initialize progvalue with value “0” as following
3 now in the progress bar change listener change the value of progValue object as per your progress bar value like
4 finally set that value in your in getView method. like
That’s all.
change the code as per your requirement i have put just for example.