aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-09-07 21:04:53 -0700
committerScott Jackson <daneren2005@gmail.com>2012-09-07 21:04:53 -0700
commitb09118f20f46554dbdf7e64fab31e15b8e825000 (patch)
tree8a3e856241f664f62373d355678ede28a69868ab /subsonic-android/res
parentf400c4e601948bf3a777908d505ae41d4c97920b (diff)
downloaddsub-b09118f20f46554dbdf7e64fab31e15b8e825000.tar.gz
dsub-b09118f20f46554dbdf7e64fab31e15b8e825000.tar.bz2
dsub-b09118f20f46554dbdf7e64fab31e15b8e825000.zip
Made title in notification bar stretch along the top for long titles + buttons aren't so freakishly large
Diffstat (limited to 'subsonic-android/res')
-rw-r--r--subsonic-android/res/drawable/notification_play.pngbin0 -> 807 bytes
-rw-r--r--subsonic-android/res/layout/notification.xml162
2 files changed, 85 insertions, 77 deletions
diff --git a/subsonic-android/res/drawable/notification_play.png b/subsonic-android/res/drawable/notification_play.png
new file mode 100644
index 00000000..8c95b6a5
--- /dev/null
+++ b/subsonic-android/res/drawable/notification_play.png
Binary files differ
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>