diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-04-17 22:31:28 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-04-17 22:31:28 -0700 |
commit | e6641440c4184316a69d4c7ed67080ecb8242f33 (patch) | |
tree | 7bb7da8284fcf5a546e35a74243be3afee708e7c /subsonic-android/res/layout | |
parent | e300762952f92fe74b1ef0787faef9ba86771d10 (diff) | |
download | dsub-e6641440c4184316a69d4c7ed67080ecb8242f33.tar.gz dsub-e6641440c4184316a69d4c7ed67080ecb8242f33.tar.bz2 dsub-e6641440c4184316a69d4c7ed67080ecb8242f33.zip |
Add a bottom bar along main activity that links to download activity
Diffstat (limited to 'subsonic-android/res/layout')
-rw-r--r-- | subsonic-android/res/layout/main.xml | 70 |
1 files changed, 69 insertions, 1 deletions
diff --git a/subsonic-android/res/layout/main.xml b/subsonic-android/res/layout/main.xml index 823922dc..fe79716c 100644 --- a/subsonic-android/res/layout/main.xml +++ b/subsonic-android/res/layout/main.xml @@ -6,8 +6,76 @@ <android.support.v4.view.ViewPager android:id="@+id/pager" - android:layout_width="match_parent" + android:layout_width="fill_parent" android:layout_height="0px" android:layout_weight="1" > </android.support.v4.view.ViewPager> + + <View + android:layout_width="fill_parent" + android:layout_height="1px" + android:background="@color/dividerColor"/> + + <LinearLayout + android:id="@+id/bottom_bar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@drawable/media_button" + android:orientation="horizontal" > + + <ImageView + android:id="@+id/album_art" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="left|center" + android:scaleType="fitXY" + android:src="@drawable/unknown_album"/> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:orientation="vertical" + android:paddingLeft="8dip"> + + <TextView + android:id="@+id/track_name" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textColor="?android:textColorPrimary" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="13sp" + android:text="@string/search.artists"/> + + <TextView + android:id="@+id/artist_name" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textColor="?android:textColorSecondary" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="12sp" + android:text="@string/search.albums"/> + </LinearLayout> + + <ImageButton + style="@style/PlaybackControl.Small" + android:id="@+id/download_previous" + android:src="?attr/media_button_backward" + android:layout_centerVertical="true"/> + + <ImageButton + style="@style/PlaybackControl.Small" + android:id="@+id/download_start" + android:src="?attr/media_button_start" + android:layout_centerVertical="true"/> + + <ImageButton + style="@style/PlaybackControl.Small" + android:id="@+id/download_next" + android:src="?attr/media_button_forward" + android:layout_centerVertical="true"/> + </LinearLayout> </LinearLayout>
\ No newline at end of file |