Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DragAndDropAdapter.java « crosstabdnd « android « niedermann « it « java « main « src « cross-tab-drag-and-drop - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a143ccaee104bbe1efc703eeecf4e8d6f23af4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package it.niedermann.android.crosstabdnd;

import androidx.annotation.NonNull;

import java.util.List;

public interface DragAndDropAdapter<Model> {

    void removeItem(int position);

    void moveItem(int fromPosition, int toPosition);

    void insertItem(Model item, int position);

    @NonNull
    List<Model> getItemList();
}