Fancy drag
This commit is contained in:
parent
514e987cf2
commit
3e6165f638
@ -64,7 +64,7 @@ public class ListAdapter extends RecyclerView.Adapter<ListAdapter.ListItemViewHo
|
||||
|
||||
public void swap(int idx1, int idx2) {
|
||||
Collections.swap(objects, idx1, idx2);
|
||||
notifyDataSetChanged();
|
||||
notifyItemMoved(idx1, idx2);
|
||||
}
|
||||
|
||||
public View createView(int listViewItemType, ViewGroup parent) {
|
||||
|
Loading…
Reference in New Issue
Block a user