1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2012 Andrew Neal
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 <com.andrew.apollo.widgets.theme.BottomActionBar xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:tools="http://schemas.android.com/tools"
19 xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
20 android:id="@+id/bottom_action_bar_parent"
21 android:layout_width="match_parent"
22 android:layout_height="@dimen/bottom_action_bar_height"
23 android:layout_gravity="bottom"
24 tools:ignore="ContentDescription" >
27 android:id="@+id/colorstrip"
28 layout="@layout/colorstrip" />
31 android:id="@+id/bottom_action_bar"
32 android:layout_width="match_parent"
33 android:layout_height="match_parent"
34 android:layout_below="@+id/colorstrip"
35 android:clickable="true"
36 android:orientation="horizontal" >
38 <com.andrew.apollo.widgets.SquareImageView
39 android:id="@+id/bottom_action_bar_album_art"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_gravity="left|center"
43 android:background="@drawable/default_artwork" />
46 android:id="@+id/bottom_action_bar_info_container"
47 android:layout_width="0dp"
48 android:layout_height="wrap_content"
49 android:layout_gravity="center_vertical"
50 android:layout_weight="1"
51 android:paddingLeft="@dimen/bottom_action_bar_info_padding_left" >
53 <com.andrew.apollo.widgets.theme.ThemeableTextView
54 android:id="@+id/bottom_action_bar_line_one"
55 style="@style/BottomActionBarLineOne"
56 app:themeResource="bab_line_one" />
58 <com.andrew.apollo.widgets.theme.ThemeableTextView
59 android:id="@+id/bottom_action_bar_line_two"
60 style="@style/BottomActionBarLineTwo"
61 android:layout_below="@+id/bottom_action_bar_line_one"
62 app:themeResource="bab_line_two" />
66 android:layout_width="@dimen/bottom_action_bar_button_container_width"
67 android:layout_height="match_parent"
68 android:scrollbars="none" >
71 android:layout_width="wrap_content"
72 android:layout_height="match_parent"
73 android:orientation="horizontal" >
75 <com.andrew.apollo.widgets.RepeatingImageButton
76 android:id="@+id/action_button_previous"
77 style="@style/BottomActionBarItem.Previous" />
79 <com.andrew.apollo.widgets.PlayPauseButton
80 android:id="@+id/action_button_play"
81 style="@style/BottomActionBarItem.Play" />
83 <com.andrew.apollo.widgets.RepeatingImageButton
84 android:id="@+id/action_button_next"
85 style="@style/BottomActionBarItem.Next" />
87 <com.andrew.apollo.widgets.ShuffleButton
88 android:id="@+id/action_button_shuffle"
89 style="@style/BottomActionBarItem.Shuffle" />
91 <com.andrew.apollo.widgets.RepeatButton
92 android:id="@+id/action_button_repeat"
93 style="@style/BottomActionBarItem.Repeat" />
95 </HorizontalScrollView>
98 </com.andrew.apollo.widgets.theme.BottomActionBar>