diff options
author | Kurt Hardin <kurthardin.dev@gmail.com> | 2012-09-14 15:27:33 -0700 |
---|---|---|
committer | Kurt Hardin <kurthardin.dev@gmail.com> | 2012-09-14 15:27:33 -0700 |
commit | 4573e156e0026348e7cdaaa1747d633b5fef3ef7 (patch) | |
tree | fee7cd78055badfc0bf40791ae4e5a8b8c3b722a /subsonic-android/res | |
parent | 5df4f164d5bf2d983da92e18d6d7c2b66322fc42 (diff) | |
parent | 1f330ce8e20e55937a012176d748867fd7e36320 (diff) | |
download | dsub-4573e156e0026348e7cdaaa1747d633b5fef3ef7.tar.gz dsub-4573e156e0026348e7cdaaa1747d633b5fef3ef7.tar.bz2 dsub-4573e156e0026348e7cdaaa1747d633b5fef3ef7.zip |
Merge remote-tracking branch 'upstream/master'
Conflicts:
subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
Diffstat (limited to 'subsonic-android/res')
-rw-r--r-- | subsonic-android/res/drawable-hdpi-v4/appwidget_bg.9.png | bin | 2909 -> 3117 bytes | |||
-rw-r--r-- | subsonic-android/res/drawable/notification_play.png | bin | 0 -> 807 bytes | |||
-rw-r--r-- | subsonic-android/res/layout/appwidget.xml | 3 | ||||
-rw-r--r-- | subsonic-android/res/layout/notification.xml | 162 |
4 files changed, 86 insertions, 79 deletions
diff --git a/subsonic-android/res/drawable-hdpi-v4/appwidget_bg.9.png b/subsonic-android/res/drawable-hdpi-v4/appwidget_bg.9.png Binary files differindex 3b29eae7..d8f892c3 100644 --- a/subsonic-android/res/drawable-hdpi-v4/appwidget_bg.9.png +++ b/subsonic-android/res/drawable-hdpi-v4/appwidget_bg.9.png diff --git a/subsonic-android/res/drawable/notification_play.png b/subsonic-android/res/drawable/notification_play.png Binary files differnew file mode 100644 index 00000000..8c95b6a5 --- /dev/null +++ b/subsonic-android/res/drawable/notification_play.png diff --git a/subsonic-android/res/layout/appwidget.xml b/subsonic-android/res/layout/appwidget.xml index e2c797b3..6b3c892e 100644 --- a/subsonic-android/res/layout/appwidget.xml +++ b/subsonic-android/res/layout/appwidget.xml @@ -3,8 +3,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" - android:background="@drawable/widget_background" - android:padding="0dp"> + android:background="@drawable/widget_background"> <ImageView android:id="@+id/appwidget_coverart" android:layout_height="fill_parent" diff --git a/subsonic-android/res/layout/notification.xml b/subsonic-android/res/layout/notification.xml index 2c65d7a0..22e2cb63 100644 --- a/subsonic-android/res/layout/notification.xml +++ b/subsonic-android/res/layout/notification.xml @@ -3,93 +3,101 @@ android:id="@+id/statusbar" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" > + android:orientation="horizontal" > + + <ImageView + android:id="@+id/notification_image" + android:layout_width="64.0dip" + android:layout_height="64.0dip" + android:layout_weight="0.0" + android:gravity="center" /> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="horizontal" > + android:orientation="vertical" + android:paddingLeft="11.0dip"> + + <TextView + android:id="@+id/notification_title" + style="@android:style/TextAppearance.StatusBar.EventContent.Title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:ellipsize="marquee" + android:focusable="true" + android:singleLine="true" /> + + <LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" > - <ImageView - android:id="@+id/notification_image" - android:layout_width="64.0dip" - android:layout_height="64.0dip" - android:layout_weight="0.0" - android:gravity="center" /> + <LinearLayout + android:layout_width="0.0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1.0" + android:orientation="vertical"> - <LinearLayout - android:layout_width="0.0dp" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:layout_weight="1.0" - android:orientation="vertical" - android:paddingLeft="11.0dip" > + <TextView + android:id="@+id/notification_artist" + style="@android:style/TextAppearance.StatusBar.EventContent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:ellipsize="end" + android:scrollHorizontally="true" + android:singleLine="true" /> - <TextView - android:id="@+id/notification_title" - style="@android:style/TextAppearance.StatusBar.EventContent.Title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="left" - android:ellipsize="marquee" - android:focusable="true" - android:singleLine="true" /> + <TextView + android:id="@+id/notification_album" + style="@android:style/TextAppearance.StatusBar.EventContent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:ellipsize="end" + android:scrollHorizontally="true" + android:singleLine="true" /> + </LinearLayout> - <TextView - android:id="@+id/notification_artist" - style="@android:style/TextAppearance.StatusBar.EventContent" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="left" - android:ellipsize="end" - android:scrollHorizontally="true" - android:singleLine="true" /> + <ImageButton + android:id="@+id/control_previous" + android:src="@drawable/notification_prev" + android:background="@drawable/btn_bg" + android:layout_width="34dip" + android:layout_height="34dip" + android:layout_gravity="center|right" + android:layout_marginRight="10dip" + android:layout_marginTop="2dip" + android:layout_weight="0.0" + android:scaleType="fitXY"/> - <TextView - android:id="@+id/notification_album" - style="@android:style/TextAppearance.StatusBar.EventContent" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="left" - android:ellipsize="end" - android:scrollHorizontally="true" - android:singleLine="true" /> - </LinearLayout> - - <ImageButton - android:id="@+id/control_previous" - android:src="@drawable/notification_prev" - android:background="@drawable/btn_bg" - android:layout_width="40dip" - android:layout_height="40dip" - android:layout_gravity="center|right" - android:layout_marginRight="5dip" - android:layout_marginTop="2dip" - android:layout_weight="0.0"/> - - <ImageButton - android:id="@+id/control_pause" - android:src="@drawable/notification_pause" - android:background="@drawable/btn_bg" - android:layout_width="40dip" - android:layout_height="40dip" - android:layout_gravity="center|right" - android:layout_marginRight="5dip" - android:layout_marginTop="2dip" - android:layout_weight="0.0"/> - - <ImageButton - android:id="@+id/control_next" - android:src="@drawable/notification_next" - android:background="@drawable/btn_bg" - android:layout_width="40dip" - android:layout_height="40dip" - android:layout_gravity="center|right" - android:layout_marginRight="5dip" - android:layout_marginTop="2dip" - android:layout_weight="0.0"/> + <ImageButton + android:id="@+id/control_pause" + android:src="@drawable/notification_pause" + android:background="@drawable/btn_bg" + android:layout_width="34dip" + android:layout_height="34dip" + android:layout_gravity="center|right" + android:layout_marginRight="10dip" + android:layout_marginTop="2dip" + android:layout_weight="0.0" + android:scaleType="fitXY"/> + <ImageButton + android:id="@+id/control_next" + android:src="@drawable/notification_next" + android:background="@drawable/btn_bg" + android:layout_width="34dip" + android:layout_height="34dip" + android:layout_gravity="center|right" + android:layout_marginRight="10dip" + android:layout_marginTop="2dip" + android:layout_weight="0.0" + android:scaleType="fitXY"/> + </LinearLayout> </LinearLayout> - </LinearLayout> |