diff --git a/res/drawable/appwidget_bg.9.png b/res/drawable/appwidget_bg.9.png deleted file mode 100644 index 3b29eae7..00000000 Binary files a/res/drawable/appwidget_bg.9.png and /dev/null differ diff --git a/res/drawable/appwidget_divider.9.png b/res/drawable/appwidget_divider.9.png deleted file mode 100644 index 3445e842..00000000 Binary files a/res/drawable/appwidget_divider.9.png and /dev/null differ diff --git a/res/drawable/button_background.xml b/res/drawable/button_background.xml deleted file mode 100644 index cd92d6cf..00000000 --- a/res/drawable/button_background.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/drawable/button_background_focused.xml b/res/drawable/button_background_focused.xml deleted file mode 100644 index bf37741b..00000000 --- a/res/drawable/button_background_focused.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/res/drawable/next_focused.png b/res/drawable/next_focused.png new file mode 100644 index 00000000..9d654d60 Binary files /dev/null and b/res/drawable/next_focused.png differ diff --git a/res/drawable/next_multi.xml b/res/drawable/next_multi.xml new file mode 100644 index 00000000..622be397 --- /dev/null +++ b/res/drawable/next_multi.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/res/drawable/pause_focused.png b/res/drawable/pause_focused.png new file mode 100644 index 00000000..c0730b0a Binary files /dev/null and b/res/drawable/pause_focused.png differ diff --git a/res/drawable/pause_multi.xml b/res/drawable/pause_multi.xml new file mode 100644 index 00000000..899963da --- /dev/null +++ b/res/drawable/pause_multi.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/res/drawable/play_focused.png b/res/drawable/play_focused.png new file mode 100644 index 00000000..233a5655 Binary files /dev/null and b/res/drawable/play_focused.png differ diff --git a/res/drawable/play_multi.xml b/res/drawable/play_multi.xml new file mode 100644 index 00000000..4891bc78 --- /dev/null +++ b/res/drawable/play_multi.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/res/layout/four_long_widget.xml b/res/layout/four_long_widget.xml index e434801a..9bb44ac6 100644 --- a/res/layout/four_long_widget.xml +++ b/res/layout/four_long_widget.xml @@ -21,80 +21,66 @@ android:layout_height="fill_parent" android:orientation="horizontal" android:clickable="true" - android:background="@drawable/appwidget_bg"> + android:layout_marginTop="5dip" + android:layout_marginBottom="5dip" + android:background="#B2191919"> - + + + + + - - - - + - - - - + android:layout_height="0px" + android:layout_weight="1" + android:src="@drawable/next_multi" + android:background="#0000" + android:scaleType="fitCenter" /> \ No newline at end of file diff --git a/src/org/kreed/vanilla/FourLongWidget.java b/src/org/kreed/vanilla/FourLongWidget.java index a749e9d4..2df1998b 100644 --- a/src/org/kreed/vanilla/FourLongWidget.java +++ b/src/org/kreed/vanilla/FourLongWidget.java @@ -101,6 +101,8 @@ public class FourLongWidget extends AppWidgetProvider { if (song == null) { views.setViewVisibility(R.id.title, View.GONE); + views.setViewVisibility(R.id.next, View.GONE); + views.setViewVisibility(R.id.play_pause, View.GONE); views.setTextViewText(R.id.artist, res.getText(R.string.no_songs)); } else { views.setViewVisibility(R.id.title, View.VISIBLE); @@ -118,7 +120,7 @@ public class FourLongWidget extends AppWidgetProvider { if (state != -1) { boolean playing = (state & PlaybackService.FLAG_PLAYING) != 0; - views.setImageViewResource(R.id.play, playing ? R.drawable.pause : R.drawable.play); + views.setImageViewResource(R.id.play_pause, playing ? R.drawable.pause_multi : R.drawable.play_multi); } Intent intent; @@ -131,13 +133,9 @@ public class FourLongWidget extends AppWidgetProvider { views.setOnClickPendingIntent(R.id.cover, pendingIntent); views.setOnClickPendingIntent(R.id.text, pendingIntent); - intent = new Intent(PlaybackService.ACTION_PREVIOUS_SONG).setComponent(service); - pendingIntent = PendingIntent.getService(context, 0, intent, 0); - views.setOnClickPendingIntent(R.id.previous, pendingIntent); - intent = new Intent(PlaybackService.ACTION_TOGGLE_PLAYBACK).setComponent(service); pendingIntent = PendingIntent.getService(context, 0, intent, 0); - views.setOnClickPendingIntent(R.id.play, pendingIntent); + views.setOnClickPendingIntent(R.id.play_pause, pendingIntent); intent = new Intent(PlaybackService.ACTION_NEXT_SONG).setComponent(service); pendingIntent = PendingIntent.getService(context, 0, intent, 0);