OSDN Git Service

9c7178841f768adb7c6ff9876dcda7250c3cd616
[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:elevation="@dimen/action_bar_elevation"
24     android:background="@android:color/transparent">
25
26     <LinearLayout
27         android:id="@+id/header_bar_button_container"
28         android:layout_width="wrap_content"
29         android:layout_height="wrap_content"
30         android:orientation="horizontal"
31         android:layout_centerVertical="true"
32         android:layout_alignParentEnd="true">
33
34         <ImageView
35             android:id="@+id/header_bar_add_button"
36             android:layout_width="@dimen/header_bar_custom_button_width"
37             android:layout_height="@dimen/header_bar_button_height"
38             android:layout_gravity="center_vertical"
39             android:layout_weight="0"
40             android:background="@drawable/selectable_background"
41             android:src="@drawable/btn_add_to_playlist"
42             android:scaleType="centerInside" />
43
44         <ImageView
45             android:id="@+id/header_bar_search_button"
46             android:layout_width="@dimen/header_bar_custom_button_width"
47             android:layout_height="@dimen/header_bar_button_height"
48             android:layout_gravity="center_vertical"
49             android:layout_weight="0"
50             android:background="@drawable/selectable_background"
51             android:src="@drawable/ic_action_search"
52             android:scaleType="centerInside" />
53
54         <ImageView
55             android:id="@+id/header_bar_menu_button"
56             android:layout_width="@dimen/header_bar_menu_button_width"
57             android:layout_height="@dimen/header_bar_button_height"
58             android:layout_gravity="center_vertical"
59             android:layout_weight="0"
60             android:scaleType="centerInside"
61             android:background="@drawable/selectable_background"
62             android:src="@drawable/menu_button_light"/>
63     </LinearLayout>
64
65     <LinearLayout
66             android:id="@+id/header_bar_text_container"
67             android:layout_width="wrap_content"
68             android:layout_height="wrap_content"
69             android:orientation="vertical"
70             android:layout_alignParentStart="true"
71             android:layout_centerVertical="true"
72             android:layout_toStartOf="@id/header_bar_button_container">
73
74         <TextView
75                 android:id="@+id/header_bar_song_title"
76                 android:layout_width="wrap_content"
77                 android:layout_height="wrap_content"
78                 android:ellipsize="end"
79                 android:maxLines="1"
80                 android:textAllCaps="true"
81                 android:textColor="@color/header_action_bar_text_color"
82                 android:textSize="@dimen/text_size_medium"
83                 android:textStyle="bold" />
84
85         <TextView
86                 android:id="@+id/header_bar_artist_title"
87                 android:layout_width="wrap_content"
88                 android:layout_height="wrap_content"
89                 android:paddingBottom="2dp"
90                 android:ellipsize="end"
91                 android:maxLines="1"
92                 android:textAllCaps="true"
93                 android:fontFamily="sans-serif-light"
94                 android:textColor="@color/header_action_bar_text_color"
95                 android:textSize="@dimen/text_size_micro" />
96     </LinearLayout>
97 </RelativeLayout>