Added a drag view to playlist songs for easier rearrangement

This commit is contained in:
Karim Abou Zeid 2015-09-12 12:21:45 +02:00
commit 29f91b6969
11 changed files with 34 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

View file

@ -6,6 +6,18 @@
android:foreground="?rect_selector"
tools:ignore="UnusedAttribute">
<ImageView
android:visibility="gone"
android:id="@+id/drag_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|start"
android:layout_marginLeft="-12dp"
android:layout_marginStart="-12dp"
android:src="@drawable/ic_equal_white_24dp"
android:tint="?icon_color"
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"

View file

@ -6,6 +6,18 @@
android:foreground="?rect_selector"
tools:ignore="UnusedAttribute">
<ImageView
android:visibility="gone"
android:id="@+id/drag_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|start"
android:layout_marginLeft="-12dp"
android:layout_marginStart="-12dp"
android:src="@drawable/ic_equal_white_24dp"
android:tint="?icon_color"
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"