OSDN Git Service

1c1f8353cca8bd3e6eeb8ef9677c98165e9a380f
[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     android:background="@android:color/transparent">
24
25     <ImageView
26         android:id="@+id/image"
27         android:layout_width="@dimen/list_item_image_width"
28         android:layout_height="@dimen/list_item_image_height"
29         android:layout_centerVertical="true"
30         android:scaleType="centerCrop" />
31
32     <!-- center the text views vertically -->
33     <LinearLayout
34         android:layout_width="fill_parent"
35         android:layout_height="fill_parent"
36         android:gravity="center_vertical"
37         android:layout_toLeftOf="@+id/play_pause_container"
38         android:layout_toRightOf="@id/image"
39         android:paddingLeft="@dimen/list_item_queue_text_padding_left"
40         android:orientation="vertical">
41         <TextView
42             android:id="@+id/line_one"
43             style="@style/ListItemMainText.Light.Single"
44             android:layout_width="match_parent"
45             android:layout_height="wrap_content" />
46
47         <TextView
48             android:id="@+id/line_two"
49             style="@style/ListItemSecondaryText.Light.Single"
50             android:layout_width="match_parent"
51             android:layout_height="wrap_content" />
52     </LinearLayout>
53
54     <FrameLayout
55         android:id="@id/play_pause_container"
56         android:layout_width="wrap_content"
57         android:layout_height="wrap_content"
58         android:layout_centerVertical="true"
59         android:layout_toLeftOf="@+id/popup_menu_button"
60         android:paddingLeft="@dimen/list_item_progress_padding_left"
61         android:paddingRight="@dimen/list_item_progress_padding_right">
62         <include
63             android:layout_width="@dimen/list_item_progress_width"
64             android:layout_height="@dimen/list_item_progress_height"
65             android:layout_centerVertical="true"
66             layout="@layout/play_pause_progress_button"/>
67     </FrameLayout>
68
69     <com.cyanogenmod.eleven.widgets.PopupMenuButton
70         android:id="@id/popup_menu_button"
71         android:layout_width="wrap_content"
72         android:layout_height="wrap_content"
73         android:layout_alignParentRight="true"
74         android:layout_centerVertical="true"
75         android:src="@drawable/menu_button_light" />
76 </RelativeLayout>