diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-08-05 21:31:59 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-08-05 21:31:59 -0700 |
commit | 4f669ae430bdb8744693baf16bd5d48bd47a51d4 (patch) | |
tree | ac4bf5c69cd367d406578d8feeb81770e0ddb531 | |
parent | d971012a1d33280165fa890fc598b16ed27195ec (diff) | |
download | dsub-4f669ae430bdb8744693baf16bd5d48bd47a51d4.tar.gz dsub-4f669ae430bdb8744693baf16bd5d48bd47a51d4.tar.bz2 dsub-4f669ae430bdb8744693baf16bd5d48bd47a51d4.zip |
Steal nicer looking volume control from Subsonic
-rw-r--r-- | res/layout/jukebox_volume.xml | 69 |
1 files changed, 43 insertions, 26 deletions
diff --git a/res/layout/jukebox_volume.xml b/res/layout/jukebox_volume.xml index e124734b..4bccaec7 100644 --- a/res/layout/jukebox_volume.xml +++ b/res/layout/jukebox_volume.xml @@ -1,29 +1,46 @@ -<?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/toast_layout_root" - android:orientation="vertical" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:background="@drawable/toast_frame"> +<?xml version="1.0" encoding="UTF-8"?> +<RelativeLayout + android:background="@drawable/toast_frame" + android:padding="20dip" + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:orientation="vertical" + android:id="@+id/toast_layout_root" + xmlns:android="http://schemas.android.com/apk/res/android"> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/download.jukebox_volume" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textColor="#ffffffff" - android:shadowColor="#bb000000" - android:shadowRadius="2.75" - android:paddingLeft="32dp" - android:paddingRight="32dp" - android:paddingBottom="12dp" - /> + <TextView + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:id="@+id/jukebox_volume_title" + android:paddingBottom="12dp" + android:paddingRight="32dp" + android:paddingLeft="32dp" + android:shadowRadius="2.75" + android:shadowColor="#bb000000" + android:textColor="#ffffffff" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/download.jukebox_volume" + android:gravity="center_horizontal" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + android:layout_alignParentLeft="true"/> - <ProgressBar android:id="@+id/jukebox_volume_progress_bar" - style="@android:style/Widget.ProgressBar.Horizontal" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:paddingBottom="3dp" - /> + <ImageView + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:id="@+id/jukebox_volume_image" + android:paddingRight="12dip" + android:layout_alignParentLeft="true" + android:layout_below="@+id/jukebox_volume_title" + android:src="@drawable/volume"/> -</LinearLayout>
\ No newline at end of file + <SeekBar + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:id="@+id/jukebox_volume_progress_bar" + android:paddingBottom="3dp" + android:layout_alignParentRight="true" + android:layout_below="@+id/jukebox_volume_title" + android:layout_toRightOf="@+id/jukebox_volume_image" + android:indeterminate="false"/> +</RelativeLayout>
\ No newline at end of file |