diff options
Diffstat (limited to 'subsonic-android/res')
-rw-r--r-- | subsonic-android/res/layout/album_list_item.xml | 7 | ||||
-rw-r--r-- | subsonic-android/res/layout/download_playlist.xml | 17 | ||||
-rw-r--r-- | subsonic-android/res/layout/select_album.xml | 15 | ||||
-rw-r--r-- | subsonic-android/res/values/styles.xml | 16 |
4 files changed, 30 insertions, 25 deletions
diff --git a/subsonic-android/res/layout/album_list_item.xml b/subsonic-android/res/layout/album_list_item.xml index d76f105f..0b84b4f3 100644 --- a/subsonic-android/res/layout/album_list_item.xml +++ b/subsonic-android/res/layout/album_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="wrap_content">
+ android:id="@id/drag_handle"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
<ImageView
android:id="@+id/album_coverart"
diff --git a/subsonic-android/res/layout/download_playlist.xml b/subsonic-android/res/layout/download_playlist.xml index dc77826d..515728bb 100644 --- a/subsonic-android/res/layout/download_playlist.xml +++ b/subsonic-android/res/layout/download_playlist.xml @@ -20,24 +20,11 @@ android:padding="10dip"/>
<com.mobeta.android.dslv.DragSortListView
- xmlns:dslv="http://schemas.android.com/apk/res/github.daneren2005.dsub"
+ style="@style/DragDropListView"
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="1dp"
- 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:remove_mode="flingRemove"
- dslv:drag_start_mode="onLongPress"/>
+ android:cacheColorHint="#00000000"/>
</LinearLayout>
\ No newline at end of file diff --git a/subsonic-android/res/layout/select_album.xml b/subsonic-android/res/layout/select_album.xml index a5802246..b688a95b 100644 --- a/subsonic-android/res/layout/select_album.xml +++ b/subsonic-android/res/layout/select_album.xml @@ -19,13 +19,14 @@ android:layout_height="wrap_content"
android:padding="10dip"/>
- <ListView android:id="@+id/select_album_entries"
- android:textFilterEnabled="true"
- android:layout_width="fill_parent"
- android:layout_height="0dip"
- android:layout_weight="1.0"
- android:fastScrollEnabled="true"
- />
+ <com.mobeta.android.dslv.DragSortListView
+ style="@style/DragDropListView"
+ android:id="@+id/select_album_entries"
+ android:textFilterEnabled="true"
+ android:layout_width="fill_parent"
+ android:layout_height="0dip"
+ android:layout_weight="1.0"
+ android:fastScrollEnabled="true"/>
<include layout="@layout/button_bar"/>
diff --git a/subsonic-android/res/values/styles.xml b/subsonic-android/res/values/styles.xml index 7ac30ad1..2d53a8d9 100644 --- a/subsonic-android/res/values/styles.xml +++ b/subsonic-android/res/values/styles.xml @@ -25,4 +25,20 @@ <item name="android:background">@drawable/menubar_button</item> <item name="android:textColor">?android:textColorPrimary</item> </style> + + <style name="DragDropListView"> + <item name="drag_enabled">true</item> + <item name="collapsed_height">1dp</item> + <item name="drag_scroll_start">1.0</item> + <item name="max_drag_scroll_speed">2.0</item> + <item name="float_alpha">0.6</item> + <item name="slide_shuffle_speed">0.3</item> + <item name="track_drag_sort">false</item> + <item name="use_default_controller">true</item> + <item name="drag_handle_id">@id/drag_handle</item> + <item name="sort_enabled">true</item> + <item name="remove_enabled">false</item> + <item name="remove_mode">flingRemove</item> + <item name="drag_start_mode">onLongPress</item> + </style> </resources>
\ No newline at end of file |