Closed Learning-from-masters closed 11 years ago
If the adapter you pass to dslv is a CursorAdapter, just call
((CursorAdapter) mAdapter).swapCursor(cursortemp);
Nice!
Just for other people, in my case I changed CursorAdapter to SimpleDragSortCursorAdapter.
I'm trying to implement an imageView down the text of every item. I have modified the method getView of DragSortListView.java and now I can click in every imageView and do things in a particular imageView but I'm having problems trying to modify the image because I need to access to the cursor. I have thougth that I can add an extra column so now the third column is going to be the route of the image but how can I change the cursor in public void onClick(View bv) so I can update the data? Is there a better way to do this?