From 9f0bcb6d185b5a366a92cf3ff09e635292e2e786 Mon Sep 17 00:00:00 2001 From: Adrian Ulrich Date: Sun, 24 Jul 2016 15:53:43 +0200 Subject: [PATCH] reduce nesting of draggable row --- res/layout/draggable_row.xml | 103 ++++++++---------- res/layout/filebrowser_content.xml | 3 +- res/layout/listview.xml | 3 +- res/layout/playlist_activity.xml | 3 +- res/layout/showqueue_listview.xml | 3 +- res/layout/tab_order.xml | 3 +- .../android/vanilla/MediaAdapter.java | 2 +- .../android/vanilla/PlaylistAdapter.java | 2 +- .../android/vanilla/TabOrderAdapter.java | 2 +- 9 files changed, 56 insertions(+), 68 deletions(-) diff --git a/res/layout/draggable_row.xml b/res/layout/draggable_row.xml index 12f6f576..c3a76311 100644 --- a/res/layout/draggable_row.xml +++ b/res/layout/draggable_row.xml @@ -19,67 +19,50 @@ along with this program. If not, see . xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" - > - - - - - - - - - - - - - - + android:orientation="horizontal"> + android:id="@+id/pmark" + android:visibility="gone" + android:layout_width="@dimen/pmark_size" + android:layout_height="@dimen/row_normal_height" + android:background="?now_playing_marker" /> + + + + + diff --git a/res/layout/filebrowser_content.xml b/res/layout/filebrowser_content.xml index 76d5f489..8e202276 100644 --- a/res/layout/filebrowser_content.xml +++ b/res/layout/filebrowser_content.xml @@ -57,7 +57,8 @@ THE SOFTWARE. android:layout_width="fill_parent" android:layout_height="wrap_content" android:listSelector="?android:attr/selectableItemBackground" - android:divider="@null" /> + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" /> diff --git a/res/layout/listview.xml b/res/layout/listview.xml index 91d7c6be..77aa3f59 100644 --- a/res/layout/listview.xml +++ b/res/layout/listview.xml @@ -24,5 +24,6 @@ THE SOFTWARE. xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:divider="@null" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" android:fastScrollEnabled="true"/> diff --git a/res/layout/playlist_activity.xml b/res/layout/playlist_activity.xml index e337e82e..9bb2179d 100644 --- a/res/layout/playlist_activity.xml +++ b/res/layout/playlist_activity.xml @@ -19,7 +19,8 @@ along with this program. If not, see . xmlns:android="http://schemas.android.com/apk/res/android" xmlns:dslv="http://schemas.android.com/apk/res-auto" android:id="@+id/list" - android:divider="@null" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" android:layout_width="fill_parent" android:layout_height="fill_parent" dslv:drag_enabled="false" diff --git a/res/layout/showqueue_listview.xml b/res/layout/showqueue_listview.xml index 247ae713..14c4bb1d 100644 --- a/res/layout/showqueue_listview.xml +++ b/res/layout/showqueue_listview.xml @@ -6,7 +6,8 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:listSelector="?android:attr/selectableItemBackground" - android:divider="@null" + android:divider="@drawable/inset_divider" + android:dividerHeight="1dip" dslv:drag_enabled="true" dslv:drag_start_mode="onMove" dslv:float_background_color="?float_color" diff --git a/res/layout/tab_order.xml b/res/layout/tab_order.xml index 20bbc1c2..2d52e0f1 100644 --- a/res/layout/tab_order.xml +++ b/res/layout/tab_order.xml @@ -30,7 +30,8 @@ THE SOFTWARE. android:layout_width="fill_parent">