OSDN Git Service

6b73ff39bf1fcf75ece1ad404ab302fe9debd124
[android-x86/packages-apps-Eleven.git] / res / layout / audio_player_header_bar.xml
1 <!--
2      Copyright (C) 2014 The CyanogenMod Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <RelativeLayout
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="fill_parent"
20     android:layout_height="@dimen/header_bar_height"
21     android:orientation="horizontal"
22     android:paddingStart="@dimen/header_bar_padding_left"
23     android:paddingEnd="@dimen/header_bar_padding_right"
24     android:elevation="@dimen/action_bar_elevation"
25     android:background="@android:color/transparent">
26
27     <LinearLayout
28         android:id="@+id/header_bar_button_container"
29         android:layout_width="wrap_content"
30         android:layout_height="wrap_content"
31         android:orientation="horizontal"
32         android:layout_centerVertical="true"
33         android:layout_alignParentEnd="true">
34
35         <ImageView
36             android:id="@+id/header_bar_add_button"
37             android:layout_width="@dimen/header_bar_custom_button_width"
38             android:layout_height="@dimen/header_bar_custom_button_height"
39             android:layout_gravity="center_vertical"
40             android:layout_weight="0"
41             android:layout_marginStart="@dimen/header_bar_button_padding"
42             android:layout_marginEnd="@dimen/header_bar_button_padding"
43             android:background="@drawable/selectable_background"
44             android:src="@drawable/btn_add_to_playlist"
45             android:scaleType="centerInside" />
46
47         <ImageView
48             android:id="@+id/header_bar_search_button"
49             android:layout_width="@dimen/header_bar_custom_button_width"
50             android:layout_height="@dimen/header_bar_custom_button_height"
51             android:layout_gravity="center_vertical"
52             android:layout_weight="0"
53             android:layout_marginStart="@dimen/header_bar_button_padding"
54             android:layout_marginEnd="@dimen/header_bar_button_padding"
55             android:background="@drawable/selectable_background"
56             android:src="@drawable/ic_action_search"
57             android:scaleType="centerInside" />
58
59         <ImageView
60             android:id="@+id/header_bar_menu_button"
61             android:layout_width="@dimen/header_bar_menu_button_width"
62             android:layout_height="@dimen/header_bar_menu_button_height"
63             android:layout_gravity="center_vertical"
64             android:layout_weight="0"
65             android:scaleType="centerInside"
66             android:layout_marginStart="@dimen/header_bar_button_padding"
67             android:background="@drawable/selectable_background"
68             android:src="@drawable/menu_button_light"/>
69     </LinearLayout>
70
71     <LinearLayout
72             android:id="@+id/header_bar_text_container"
73             android:layout_width="wrap_content"
74             android:layout_height="wrap_content"
75             android:orientation="vertical"
76             android:layout_alignParentStart="true"
77             android:layout_centerVertical="true"
78             android:layout_toStartOf="@id/header_bar_button_container">
79
80         <TextView
81                 android:id="@+id/header_bar_song_title"
82                 android:layout_width="wrap_content"
83                 android:layout_height="wrap_content"
84                 android:ellipsize="end"
85                 android:maxLines="1"
86                 android:textAllCaps="true"
87                 android:textColor="@color/header_action_bar_text_color"
88                 android:textSize="@dimen/text_size_medium"
89                 android:textStyle="bold" />
90
91         <TextView
92                 android:id="@+id/header_bar_artist_title"
93                 android:layout_width="wrap_content"
94                 android:layout_height="wrap_content"
95                 android:paddingBottom="2dp"
96                 android:ellipsize="end"
97                 android:maxLines="1"
98                 android:textAllCaps="true"
99                 android:fontFamily="sans-serif-light"
100                 android:textColor="@color/header_action_bar_text_color"
101                 android:textSize="@dimen/text_size_micro" />
102     </LinearLayout>
103 </RelativeLayout>