OSDN Git Service

Update Eleven headers and namespace for open source
[android-x86/packages-apps-Eleven.git] / res / layout / list_item_queue.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17     android:layout_width="match_parent"
18     android:layout_height="@dimen/item_normal_height"
19     android:gravity="center_vertical"
20     android:minHeight="@dimen/item_normal_height"
21     android:paddingTop="@dimen/list_item_padding_top"
22     android:paddingBottom="@dimen/list_item_padding_bottom">
23
24     <com.cyanogenmod.eleven.widgets.SquareImageView
25         android:id="@+id/image"
26         android:layout_width="@dimen/list_item_image_width"
27         android:layout_height="@dimen/list_item_image_height"
28         android:layout_centerVertical="true"
29         android:scaleType="centerCrop" />
30
31     <!-- center the text views vertically -->
32     <LinearLayout
33         android:layout_width="fill_parent"
34         android:layout_height="fill_parent"
35         android:gravity="center_vertical"
36         android:layout_toLeftOf="@+id/play_pause_container"
37         android:layout_toRightOf="@id/image"
38         android:paddingLeft="@dimen/list_item_queue_text_padding_left"
39         android:orientation="vertical">
40         <TextView
41             android:id="@+id/line_one"
42             style="@style/ListItemMainText.Light.Single"
43             android:layout_width="match_parent"
44             android:layout_height="wrap_content" />
45
46         <TextView
47             android:id="@+id/line_two"
48             style="@style/ListItemSecondaryText.Light.Single"
49             android:layout_width="match_parent"
50             android:layout_height="wrap_content" />
51     </LinearLayout>
52
53     <FrameLayout
54         android:id="@id/play_pause_container"
55         android:layout_width="wrap_content"
56         android:layout_height="wrap_content"
57         android:layout_centerVertical="true"
58         android:layout_toLeftOf="@+id/popup_menu_button"
59         android:paddingLeft="@dimen/list_item_progress_padding_left"
60         android:paddingRight="@dimen/list_item_progress_padding_right">
61         <include
62             android:layout_width="@dimen/list_item_progress_width"
63             android:layout_height="@dimen/list_item_progress_height"
64             android:layout_centerVertical="true"
65             layout="@layout/play_pause_progress_button"/>
66     </FrameLayout>
67
68     <com.cyanogenmod.eleven.widgets.PopupMenuButton
69         android:id="@id/popup_menu_button"
70         android:layout_width="wrap_content"
71         android:layout_height="wrap_content"
72         android:layout_alignParentRight="true"
73         android:layout_centerVertical="true"
74         android:src="@drawable/menu_button_light" />
75 </RelativeLayout>