Drag And Drop For Listview Of Views
Hi i am having Listview where each item is having different layout.and i want to perform drag and drop on this listview.i have searched many examples and tried but all works for li
Solution 1:
HI I finally solved this problem myself,above code works by making few changes in adapter class of listview.In adapter's public long getItemId(int position) make necessary changes so that it will give you id of passed positions view.Dont just return position. Also,in dynamicListview class after swapping position refresh of listview is being done so in listadapter's getview() method,we need to make changes accordingly. That's it,then it works like charm.Hope this helps somebody else too.
Post a Comment for "Drag And Drop For Listview Of Views"