[Android] Audio player: workaround to fix the old version android bug of the playlist entirely orange on item dragging

Adrien Maglo git at videolan.org
Mon Jan 27 21:45:36 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Jan 27 21:44:55 2014 +0100| [1c39e4182b9d67705c75dbf6a61272c0d1d42cc4] | committer: Adrien Maglo

Audio player: workaround to fix the old version android bug of the playlist entirely orange on item dragging

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=1c39e4182b9d67705c75dbf6a61272c0d1d42cc4
---

 .../res/layout/audio_playlist_item_drag_shadow.xml |  108 +++++++++++---------
 1 file changed, 57 insertions(+), 51 deletions(-)

diff --git a/vlc-android/res/layout/audio_playlist_item_drag_shadow.xml b/vlc-android/res/layout/audio_playlist_item_drag_shadow.xml
index 14a06c7..80ad745 100644
--- a/vlc-android/res/layout/audio_playlist_item_drag_shadow.xml
+++ b/vlc-android/res/layout/audio_playlist_item_drag_shadow.xml
@@ -1,62 +1,68 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/layout_item"
-    android:layout_width="fill_parent"
-    android:layout_height="wrap_content"
-    android:layout_weight="1"
-    android:orientation="horizontal"
-    android:paddingLeft="10dp"
-    android:background="@color/darkerorange" >
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content" >
 
     <LinearLayout
-        android:layout_width="0dip"
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        android:id="@+id/layout_item"
+        android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_weight="1"
-        android:gravity="center_vertical"
-        android:orientation="vertical" >
+        android:background="@color/darkerorange"
+        android:orientation="horizontal"
+        android:paddingLeft="10dp" >
 
-        <TextView
-            android:id="@+id/title"
-            android:layout_width="fill_parent"
+        <LinearLayout
+            android:layout_width="0dip"
             android:layout_height="wrap_content"
-            android:layout_marginLeft="5dip"
-            android:layout_marginRight="5dip"
-            android:layout_marginTop="5dip"
-            android:singleLine="true"
-            android:text="@string/title"
-            android:textColor="@color/list_title"
-            android:textSize="16sp" />
+            android:layout_weight="1"
+            android:gravity="center_vertical"
+            android:orientation="vertical" >
 
-        <TextView
-            android:id="@+id/artist"
-            android:layout_width="fill_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginBottom="5dip"
-            android:layout_marginLeft="5dip"
-            android:layout_marginRight="5dip"
-            android:singleLine="true"
-            android:text="@string/artist"
-            android:textColor="@color/list_subtitle"
-            android:textSize="11sp" />
-    </LinearLayout>
+            <TextView
+                android:id="@+id/title"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginLeft="5dip"
+                android:layout_marginRight="5dip"
+                android:layout_marginTop="5dip"
+                android:singleLine="true"
+                android:text="@string/title"
+                android:textColor="@color/list_title"
+                android:textSize="16sp" />
 
-    <View
-        android:layout_width="1dp"
-        android:layout_height="match_parent"
-        android:layout_gravity="center"
-        android:layout_marginBottom="8dp"
-        android:layout_marginTop="8dp"
-        android:background="?attr/playlist_item_footer" />
+            <TextView
+                android:id="@+id/artist"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginBottom="5dip"
+                android:layout_marginLeft="5dip"
+                android:layout_marginRight="5dip"
+                android:singleLine="true"
+                android:text="@string/artist"
+                android:textColor="@color/list_subtitle"
+                android:textSize="11sp" />
+        </LinearLayout>
 
-    <ImageButton
-        android:id="@+id/move"
-        android:layout_width="30dp"
-        android:layout_height="30dp"
-        android:layout_gravity="center"
-        android:layout_marginLeft="5dp"
-        android:layout_marginRight="5dp"
-        android:background="#00000000"
-        android:scaleType="fitXY"
-        android:src="@drawable/ic_move_media" />
+        <View
+            android:layout_width="1dp"
+            android:layout_height="match_parent"
+            android:layout_gravity="center"
+            android:layout_marginBottom="8dp"
+            android:layout_marginTop="8dp"
+            android:background="?attr/playlist_item_footer" />
+
+        <ImageButton
+            android:id="@+id/move"
+            android:layout_width="30dp"
+            android:layout_height="30dp"
+            android:layout_gravity="center"
+            android:layout_marginLeft="5dp"
+            android:layout_marginRight="5dp"
+            android:background="#00000000"
+            android:scaleType="fitXY"
+            android:src="@drawable/ic_move_media" />
+    </LinearLayout>
 
-</LinearLayout>
\ No newline at end of file
+</FrameLayout>
\ No newline at end of file



More information about the Android mailing list