summaryrefslogtreecommitdiffstats
path: root/res/layout-land
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout-land')
-rw-r--r--res/layout-land/audio_player.xml131
-rw-r--r--res/layout-land/audio_player_common.xml104
-rw-r--r--res/layout-land/buttonbar.xml106
-rw-r--r--res/layout-land/extra_controls.xml226
-rw-r--r--res/layout-land/media_picker_activity.xml39
-rw-r--r--res/layout-land/media_picker_activity_expanding.xml41
6 files changed, 647 insertions, 0 deletions
diff --git a/res/layout-land/audio_player.xml b/res/layout-land/audio_player.xml
new file mode 100644
index 0000000..b5ce353
--- /dev/null
+++ b/res/layout-land/audio_player.xml
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2007 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/player_background"
+ android:orientation="vertical" >
+
+ <!-- This is the LinearLayout that contains the album art, function buttons and album/artist/track info -->
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/album"
+ android:layout_width="196dip"
+ android:layout_height="match_parent"
+ android:scaleType="fitXY" />
+ <ImageView
+ android:id="@+id/album_dummy"
+ android:layout_width="196dip"
+ android:layout_height="match_parent"
+ android:scaleType="fitXY"
+ android:visibility="gone" />
+
+ <!-- This is the LinearLayout that contains function buttons and album/artist/track info -->
+
+ <LinearLayout
+ android:layout_width="0dip"
+ android:layout_height="match_parent"
+ android:layout_weight="1.0"
+ android:gravity="center|bottom"
+ android:orientation="vertical"
+ android:paddingLeft="10dip" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:baselineAligned="false"
+ android:orientation="horizontal"
+ android:paddingBottom="2dip"
+ android:paddingTop="8dip" >
+
+ <TextView
+ android:id="@+id/trackname"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:ellipsize="end"
+ android:shadowColor="#ff000000"
+ android:shadowDx="0"
+ android:shadowDy="0"
+ android:shadowRadius="3"
+ android:singleLine="true"
+ android:textColor="@color/ics"
+ android:textSize="21sp"
+ android:textStyle="normal" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/artistname_holder"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:baselineAligned="false"
+ android:orientation="horizontal"
+ android:paddingBottom="2dip"
+ android:paddingTop="4dip" >
+
+ <TextView
+ android:id="@+id/artistname"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:ellipsize="end"
+ android:shadowColor="#ff000000"
+ android:shadowDx="0"
+ android:shadowDy="0"
+ android:shadowRadius="3"
+ android:singleLine="true"
+ android:textColor="@color/ics"
+ android:textSize="21sp"
+ android:textStyle="normal" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:baselineAligned="false"
+ android:orientation="horizontal"
+ android:paddingBottom="2dip"
+ android:paddingTop="4dip" >
+
+ <TextView
+ android:id="@+id/albumname"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:ellipsize="end"
+ android:shadowColor="#ff000000"
+ android:shadowDx="0"
+ android:shadowDy="0"
+ android:shadowRadius="3"
+ android:singleLine="true"
+ android:textColor="@color/ics"
+ android:textSize="21sp"
+ android:textStyle="normal" />
+ </LinearLayout>
+ </LinearLayout>
+ </LinearLayout>
+
+ <include layout="@layout/audio_player_common" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout-land/audio_player_common.xml b/res/layout-land/audio_player_common.xml
new file mode 100644
index 0000000..9d94cdc
--- /dev/null
+++ b/res/layout-land/audio_player_common.xml
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2007 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<merge xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <SeekBar
+ android:id="@android:id/progress"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dip" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:layout_marginBottom="2dip"
+ android:layout_marginTop="1dip"
+ android:gravity="center"
+ android:orientation="horizontal" >
+
+ <TextView
+ android:id="@+id/currenttime"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:layout_weight="1"
+ android:gravity="left"
+ android:paddingBottom="15dip"
+ android:paddingLeft="6dip"
+ android:shadowColor="#ff000000"
+ android:shadowDx="0"
+ android:shadowDy="0"
+ android:shadowRadius="3"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textSize="14sp"
+ android:textStyle="bold" />
+
+ <ImageButton
+ android:id="@+id/shuffle_normal"
+ android:layout_width="71dip"
+ android:layout_height="52dip"
+ android:background="@drawable/btn_bg"
+ android:src="@drawable/ic_mp_shuffle_off_btn"
+ android:visibility="gone" />
+
+ <com.android.music.RepeatingImageButton
+ android:id="@+id/prev"
+ style="@android:style/MediaButton.Previous"
+ android:background="@drawable/btn_bg"
+ android:src="@drawable/ic_appwidget_music_prev" />
+
+ <ImageButton
+ android:id="@+id/pause"
+ style="@android:style/MediaButton.Play"
+ android:background="@drawable/btn_bg" />
+
+ <com.android.music.RepeatingImageButton
+ android:id="@+id/next"
+ style="@android:style/MediaButton.Next"
+ android:background="@drawable/btn_bg"
+ android:src="@drawable/ic_appwidget_music_next" />
+
+ <ImageButton
+ android:id="@+id/repeat_normal"
+ android:layout_width="71dip"
+ android:layout_height="52dip"
+ android:background="@drawable/btn_bg"
+ android:src="@drawable/ic_mp_repeat_off_btn"
+ android:visibility="gone" />
+
+ <TextView
+ android:id="@+id/totaltime"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:layout_weight="1"
+ android:gravity="right"
+ android:paddingBottom="15dip"
+ android:paddingRight="6dip"
+ android:shadowColor="#ff000000"
+ android:shadowDx="0"
+ android:shadowDy="0"
+ android:shadowRadius="3"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textSize="14sp"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+</merge> \ No newline at end of file
diff --git a/res/layout-land/buttonbar.xml b/res/layout-land/buttonbar.xml
new file mode 100644
index 0000000..1851fa7
--- /dev/null
+++ b/res/layout-land/buttonbar.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ** ** Copyright 2008, The Android Open Source Project ** ** Licensed
+ under the Apache License, Version 2.0 (the "License"); ** you may not use
+ this file except in compliance with the License. ** You may obtain a copy
+ of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** **
+ Unless required by applicable law or agreed to in writing, software ** distributed
+ under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES
+ OR CONDITIONS OF ANY KIND, either express or implied. ** See the License
+ for the specific language governing permissions and ** limitations under
+ the License. */
+-->
+
+<TabWidget xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/buttonbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#80000000"
+ android:tabStripEnabled="false" >
+
+ <TextView
+ android:id="@+id/artisttab"
+ android:layout_width="match_parent"
+ android:layout_height="50dip"
+ android:layout_marginLeft="-3dip"
+ android:layout_marginRight="-3dip"
+ android:layout_weight="1"
+ android:background="@drawable/tabs_bg"
+ android:focusable="true"
+ android:gravity="center"
+ android:paddingBottom="2dip"
+ android:paddingTop="7dip"
+ android:text="@string/browse_menu"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/tab_indicator_text"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/albumtab"
+ android:layout_width="match_parent"
+ android:layout_height="50dip"
+ android:layout_marginLeft="3dip"
+ android:layout_marginRight="-3dip"
+ android:layout_weight="1"
+ android:background="@drawable/tabs_bg"
+ android:focusable="true"
+ android:gravity="center"
+ android:paddingBottom="2dip"
+ android:paddingTop="7dip"
+ android:text="@string/albums_menu"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/tab_indicator_text"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/songtab"
+ android:layout_width="match_parent"
+ android:layout_height="50dip"
+ android:layout_marginLeft="3dip"
+ android:layout_marginRight="-3dip"
+ android:layout_weight="1"
+ android:background="@drawable/tabs_bg"
+ android:focusable="true"
+ android:gravity="center"
+ android:paddingBottom="2dip"
+ android:paddingTop="7dip"
+ android:text="@string/tracks_menu"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/tab_indicator_text"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/playlisttab"
+ android:layout_width="match_parent"
+ android:layout_height="50dip"
+ android:layout_marginLeft="3dip"
+ android:layout_marginRight="-3dip"
+ android:layout_weight="1"
+ android:background="@drawable/tabs_bg"
+ android:focusable="true"
+ android:gravity="center"
+ android:paddingBottom="2dip"
+ android:paddingTop="7dip"
+ android:text="@string/playlists_menu"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/tab_indicator_text"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/nowplayingtab"
+ android:layout_width="match_parent"
+ android:layout_height="50dip"
+ android:layout_marginLeft="3dip"
+ android:layout_marginRight="-3dip"
+ android:layout_weight="1"
+ android:background="@drawable/tabs_bg"
+ android:focusable="false"
+ android:gravity="center"
+ android:paddingBottom="2dip"
+ android:paddingTop="7dip"
+ android:text="@string/nowplaying_title"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/tab_indicator_text"
+ android:textSize="18sp" />
+
+</TabWidget> \ No newline at end of file
diff --git a/res/layout-land/extra_controls.xml b/res/layout-land/extra_controls.xml
new file mode 100644
index 0000000..1ff6382
--- /dev/null
+++ b/res/layout-land/extra_controls.xml
@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/extra_controls"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_below="@id/album"
+ android:layout_gravity="fill_vertical"
+ android:background="@null"
+ android:visibility="gone"
+ android:weightSum="6.25" >
+
+ <LinearLayout
+ android:id="@+id/shuffle"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/shuffle_extra_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false" />
+
+ <TextView
+ android:id="@+id/shuffle_text"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/shuffle_extra"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/repeat"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:longClickable="true"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/repeat_extra_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false" />
+
+ <TextView
+ android:id="@+id/repeat_text"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/repeat_extra"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <!-- Landscape -->
+
+ <LinearLayout
+ android:id="@+id/shop"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:visibility="gone" >
+
+ <ImageButton
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false"
+ android:src="@drawable/ic_market" />
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/shop_min"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/ringtone"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:visibility="gone" >
+
+ <ImageButton
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false"
+ android:src="@drawable/ic_ring" />
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/set_ring"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/share_extra"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:longClickable="true"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/share_extra_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false"
+ android:src="@drawable/ic_menu_share" />
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/share"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/eq_extra"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/eq_extra_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false"
+ android:src="@drawable/ic_menu_eq" />
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/eq"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/delete_extra"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.25"
+ android:background="@drawable/btn_bg_extra"
+ android:clickable="true"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:visibility="gone" >
+
+ <ImageButton
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ android:clickable="false"
+ android:src="@drawable/ic_menu_delete" />
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2.0dip"
+ android:gravity="center_horizontal"
+ android:shadowColor="#ff111111"
+ android:text="@string/delete_track"
+ android:textColor="#ffffffff"
+ android:textSize="12.0dip"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout-land/media_picker_activity.xml b/res/layout-land/media_picker_activity.xml
new file mode 100644
index 0000000..95e2c0b
--- /dev/null
+++ b/res/layout-land/media_picker_activity.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2007 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/album_tab"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#111111"
+ android:gravity="center_vertical"
+ android:orientation="vertical" >
+
+ <include layout="@layout/sd_error" />
+
+ <include layout="@layout/buttonbar" />
+
+ <com.android.music.TouchInterceptor
+ android:id="@android:id/list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:drawSelectorOnTop="true"
+ android:fastScrollEnabled="true"
+ android:textSize="18sp" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout-land/media_picker_activity_expanding.xml b/res/layout-land/media_picker_activity_expanding.xml
new file mode 100644
index 0000000..522d6c8
--- /dev/null
+++ b/res/layout-land/media_picker_activity_expanding.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/artist_tab"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ff000000"
+ android:gravity="center_vertical"
+ android:orientation="vertical" >
+
+ <include layout="@layout/sd_error" />
+
+ <include layout="@layout/buttonbar" />
+
+ <ExpandableListView
+ android:id="@android:id/list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:drawSelectorOnTop="true"
+ android:fastScrollEnabled="true"
+ android:indicatorLeft="8dip"
+ android:indicatorRight="52dip"
+ android:textSize="18sp" />
+
+</LinearLayout> \ No newline at end of file