Skip to content

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

@jamesleekko

Description

@jamesleekko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions