OSDN Git Service

65ddb696805aa510146feac085c4d2257bfd0295
[android-x86/packages-apps-Eleven.git] / res / layout / bottom_action_bar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   Copyright (C) 2012 Andrew Neal
4  
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
8  
9        http://www.apache.org/licenses/LICENSE-2.0
10  
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.
16 -->
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" >
25
26     <include
27         android:id="@+id/colorstrip"
28         layout="@layout/colorstrip" />
29
30     <LinearLayout
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" >
37
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" />
44
45         <RelativeLayout
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" >
52
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" />
57
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" />
63         </RelativeLayout>
64
65         <HorizontalScrollView
66             android:layout_width="@dimen/bottom_action_bar_button_container_width"
67             android:layout_height="match_parent"
68             android:scrollbars="none" >
69
70             <LinearLayout
71                 android:layout_width="wrap_content"
72                 android:layout_height="match_parent"
73                 android:orientation="horizontal" >
74
75                 <com.andrew.apollo.widgets.RepeatingImageButton
76                     android:id="@+id/action_button_previous"
77                     style="@style/BottomActionBarItem.Previous" />
78
79                 <com.andrew.apollo.widgets.PlayPauseButton
80                     android:id="@+id/action_button_play"
81                     style="@style/BottomActionBarItem.Play" />
82
83                 <com.andrew.apollo.widgets.RepeatingImageButton
84                     android:id="@+id/action_button_next"
85                     style="@style/BottomActionBarItem.Next" />
86
87                 <com.andrew.apollo.widgets.ShuffleButton
88                     android:id="@+id/action_button_shuffle"
89                     style="@style/BottomActionBarItem.Shuffle" />
90
91                 <com.andrew.apollo.widgets.RepeatButton
92                     android:id="@+id/action_button_repeat"
93                     style="@style/BottomActionBarItem.Repeat" />
94             </LinearLayout>
95         </HorizontalScrollView>
96     </LinearLayout>
97
98 </com.andrew.apollo.widgets.theme.BottomActionBar>