aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-02-24 07:57:35 -0800
committerScott Jackson <daneren2005@gmail.com>2013-02-24 07:57:35 -0800
commit166bdaa7baf36b3d0a349808c6bb7d7250b98e0b (patch)
treef7ed6c8c224d5edc2c2f9b3ba7903fb42ebf585a
parent783e888584d1c10183aec7ead1ac62e56b435ab3 (diff)
downloaddsub-166bdaa7baf36b3d0a349808c6bb7d7250b98e0b.tar.gz
dsub-166bdaa7baf36b3d0a349808c6bb7d7250b98e0b.tar.bz2
dsub-166bdaa7baf36b3d0a349808c6bb7d7250b98e0b.zip
Abstracted out dslv properties into style
-rw-r--r--subsonic-android/res/layout/download_playlist.xml17
-rw-r--r--subsonic-android/res/values/styles.xml17
2 files changed, 19 insertions, 15 deletions
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/values/styles.xml b/subsonic-android/res/values/styles.xml
index 7ac30ad1..e47aab3b 100644
--- a/subsonic-android/res/values/styles.xml
+++ b/subsonic-android/res/values/styles.xml
@@ -25,4 +25,21 @@
<item name="android:background">@drawable/menubar_button</item>
<item name="android:textColor">?android:textColorPrimary</item>
</style>
+
+ <style name="DragDropListView">
+ xmlns:dslv="http://schemas.android.com/apk/res/github.daneren2005.dsub"
+ 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"
+ </style>
</resources> \ No newline at end of file