Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If I use baseAdapter,which basic sentences should I add in 'DragSortListener.drop'? #157

Open
jamesleekko opened this issue Jun 8, 2017 · 0 comments

Comments

@jamesleekko
Copy link

jamesleekko commented Jun 8, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant