Saturday, 15 September 2012

listview - How to interchange the position of Item of a List View manually in android. -


I have read the number of examples "n", even GITHUB a please provide me more relevant code. #getFirstVisibilityPosition (), #setSelection () I have read all these commands, but because they are not able to apply them in the order they should be in the new m in this area.

I have got this from some source, other #devbyts who are using animation for swapping.

List element click on public zero (Adapter View, View View, Int Position, Long ID) {

  int tmp = sp.getFirstVisiblePosition (); Sp.set (0, sp.getFirstVisiblePosition ()); Sp.set (position, tmp); At.notifyDataSetChanged ();  

Please help!

This is the best possible source code. I have found this question.


No comments:

Post a Comment