For example, I use these codes in callback.
I know it's not normative..
@override
public void drop(int from, int to) {
if (from != to) {
AddingCardBean bean = mCards.get(from);
mCards.remove(from);
mCards.add(to,bean);
mCardAdapter = new MyCardAdapter(DayManageActivity.this,mCards);
mListView.setAdapter(mCardAdapter);
mListView.moveCheckState(from,to);
}
}
After I drag a item, the item returns to its former position.
For example, I use these codes in callback. I know it's not normative.. @override public void drop(int from, int to) { if (from != to) { AddingCardBean bean = mCards.get(from); mCards.remove(from); mCards.add(to,bean); mCardAdapter = new MyCardAdapter(DayManageActivity.this,mCards); mListView.setAdapter(mCardAdapter); mListView.moveCheckState(from,to); } }
After I drag a item, the item returns to its former position.