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 | |
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')
-rw-r--r-- | subsonic-android/res/layout/main.xml | 70 | ||||
-rw-r--r-- | subsonic-android/res/values/styles.xml | 1 |
2 files changed, 70 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 diff --git a/subsonic-android/res/values/styles.xml b/subsonic-android/res/values/styles.xml index 2d53a8d9..4dcce34f 100644 --- a/subsonic-android/res/values/styles.xml +++ b/subsonic-android/res/values/styles.xml @@ -12,6 +12,7 @@ </style> <style name="PlaybackControl.Small" parent="@style/PlaybackControl"> + <item name="android:padding">4dip</item> <item name="android:layout_width">46dip</item> <item name="android:layout_height">46dip</item> </style> |