aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/res/layout
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-02-17 16:20:41 -0800
committerScott Jackson <daneren2005@gmail.com>2013-02-17 16:20:41 -0800
commitfa9e77b8e90fa684e0374c8ac3237baadd38f7b6 (patch)
tree59c2590a3a4ff905c700aba6873afe32a1e4ecb9 /subsonic-android/res/layout
parente4ce03c6f1c3fb5ec48fcefbf814d83a1d5090f4 (diff)
downloaddsub-fa9e77b8e90fa684e0374c8ac3237baadd38f7b6.tar.gz
dsub-fa9e77b8e90fa684e0374c8ac3237baadd38f7b6.tar.bz2
dsub-fa9e77b8e90fa684e0374c8ac3237baadd38f7b6.zip
Added drag drop functionality to now playing tab
Diffstat (limited to 'subsonic-android/res/layout')
-rw-r--r--subsonic-android/res/layout/download_playlist.xml25
-rw-r--r--subsonic-android/res/layout/song_list_item.xml7
2 files changed, 23 insertions, 9 deletions
diff --git a/subsonic-android/res/layout/download_playlist.xml b/subsonic-android/res/layout/download_playlist.xml
index 8e92a984..8bd54877 100644
--- a/subsonic-android/res/layout/download_playlist.xml
+++ b/subsonic-android/res/layout/download_playlist.xml
@@ -19,11 +19,24 @@
android:layout_height="wrap_content"
android:padding="10dip"/>
- <ListView
- android:id="@+id/download_list"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_weight="1"
- android:cacheColorHint="#00000000"/>
+ <com.mobeta.android.dslv.DragSortListView
+ xmlns:dslv="http://schemas.android.com/apk/res/github.daneren2005.dsub"
+ android:id="@+id/download_list"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_weight="1"
+ android:cacheColorHint="#00000000"
+ dslv:drag_enabled="true"
+ dslv:collapsed_height="2dp"
+ dslv:drag_scroll_start="1.0"
+ dslv:max_drag_scroll_speed="2.0"
+ dslv:float_alpha="0.6"
+ dslv:slide_shuffle_speed="0.3"
+ dslv:track_drag_sort="false"
+ dslv:use_default_controller="true"
+ dslv:drag_handle_id="@id/drag_handle"
+ dslv:sort_enabled="true"
+ dslv:remove_enabled="false"
+ dslv:drag_start_mode="onDown"/>
</LinearLayout> \ No newline at end of file
diff --git a/subsonic-android/res/layout/song_list_item.xml b/subsonic-android/res/layout/song_list_item.xml
index 9bbfde94..0ff738d2 100644
--- a/subsonic-android/res/layout/song_list_item.xml
+++ b/subsonic-android/res/layout/song_list_item.xml
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="?android:attr/listPreferredItemHeight">
+ android:id="@id/drag_handle"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight">
<CheckedTextView
android:id="@+id/song_check"