diff --git a/res/layout/showqueue_listview.xml b/res/layout/showqueue_listview.xml
index 76936c41..7888fa07 100644
--- a/res/layout/showqueue_listview.xml
+++ b/res/layout/showqueue_listview.xml
@@ -1,10 +1,17 @@
-
+ android:scrollbarStyle="outsideInset"
+ dslv:drag_enabled="true"
+ dslv:drag_start_mode="onMove"
+ dslv:drag_handle_id="@+id/playmark"
+ dslv:remove_enabled="true"
+ dslv:remove_mode="flingRemove"
+ />
diff --git a/res/layout/showqueue_row.xml b/res/layout/showqueue_row.xml
index f99c8ff4..52908a70 100644
--- a/res/layout/showqueue_row.xml
+++ b/res/layout/showqueue_row.xml
@@ -6,7 +6,7 @@
android:orientation="horizontal">
- implements DragListView.DragAdapter {
+ {
int mResource;
int mHighlightRow;
Context mContext;
- OnItemMovedListener mCallback;
public ShowQueueAdapter(Context context, int resource) {
super(context, resource);
mResource = resource;
mContext = context;
- mCallback = (OnItemMovedListener) context;
mHighlightRow = -1;
}
- /**
- * Called if user moved a queue item
- */
- public interface OnItemMovedListener {
- public void onItemMoved(int from, int to);
- }
-
/**
* Tells the adapter to highlight a specific row id
* Set this to -1 to disable the feature
@@ -86,21 +77,4 @@ public class ShowQueueAdapter
return row;
}
- @Override
- public void remove(int position) {
- // not implemented
- }
-
-
- /**
- * Moves a songs position in the queue
- *
- * @param from the index of the song to be moved
- * @param to the new index position of the song
- */
- @Override
- public void move(int from, int to) {
- mCallback.onItemMoved(from, to);
- }
-
}