OSDN Git Service

Eleven: Add the context menu items to the 2nd layer
[android-x86/packages-apps-Eleven.git] / res / layout / activity_album_detail.xml
1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     android:layout_width="match_parent"
3     android:layout_height="match_parent"
4     android:background="@color/background_color" >
5
6     <RelativeLayout
7         android:id="@+id/header"
8         android:layout_width="match_parent"
9         android:layout_height="108dp"
10         android:layout_alignParentTop="true"
11         android:layout_alignParentLeft="true"
12         android:background="@color/page_header_background" >
13
14         <com.cyngn.eleven.widgets.PopupMenuButton
15             android:id="@+id/overflow"
16             android:layout_width="@dimen/overflow_width"
17             android:layout_height="@dimen/overflow_width"
18             android:layout_alignParentBottom="true"
19             android:layout_alignParentRight="true"
20             android:layout_marginBottom="40dp"
21             android:gravity="center"
22             android:src="@drawable/menu_button" />
23
24         <ImageView
25             android:id="@+id/album_art"
26             android:layout_width="108dp"
27             android:layout_height="108dp"
28             android:layout_marginRight="@dimen/standard_padding"
29             android:layout_alignParentTop="true"
30             android:layout_alignParentLeft="true" />
31
32         <TextView
33             android:id="@+id/title"
34             android:layout_width="match_parent"
35             android:layout_height="wrap_content"
36             android:layout_alignParentTop="true"
37             android:layout_toRightOf="@id/album_art"
38             android:layout_toLeftOf="@id/overflow"
39             android:layout_marginTop="21dp"
40             android:singleLine="true"
41             android:fontFamily="sans-serif"
42             android:textStyle="bold"
43             android:textSize="@dimen/text_size_large"
44             android:textColor="@color/default_text_color" />
45
46         <TextView
47             android:id="@+id/song_count_and_year"
48             android:layout_width="match_parent"
49             android:layout_height="wrap_content"
50             android:layout_below="@id/title"
51             android:layout_toRightOf="@id/album_art"
52             android:singleLine="true"
53             android:fontFamily="sans-serif-light"
54             android:textSize="@dimen/text_size_micro"
55             android:textColor="@color/default_text_color" />
56
57         <TextView
58             android:id="@+id/genre"
59             android:layout_width="wrap_content"
60             android:layout_height="wrap_content"
61             android:layout_below="@id/song_count_and_year"
62             android:layout_toRightOf="@id/album_art"
63             android:layout_marginRight="@dimen/standard_padding"
64             android:singleLine="true"
65             android:fontFamily="sans-serif-light"
66             android:textSize="@dimen/text_size_micro"
67             android:textColor="@color/default_text_color"
68             android:visibility="gone" />
69
70         <ImageView
71             android:id="@+id/duration_icon"
72             android:layout_width="10dp"
73             android:layout_height="12dp"
74             android:layout_below="@id/song_count_and_year"
75             android:layout_toRightOf="@id/genre"
76             android:layout_marginTop="2dp"
77             android:layout_marginRight="4dp"
78             android:gravity="center"
79             android:src="@drawable/stopwatch_icon_small_grey" />
80
81         <TextView
82             android:id="@+id/duration"
83             android:layout_width="60dp"
84             android:layout_height="30dp"
85             android:layout_below="@id/song_count_and_year"
86             android:layout_toRightOf="@id/duration_icon"
87             android:singleLine="true"
88             android:fontFamily="sans-serif-light"
89             android:textSize="@dimen/text_size_micro"
90             android:textColor="@color/default_text_color" />
91     </RelativeLayout>
92
93     <ListView
94         android:id="@+id/songs"
95         android:layout_width="match_parent"
96         android:layout_height="match_parent"
97         android:layout_below="@id/header"
98         android:layout_alignParentLeft="true"
99         android:divider="@null"
100         android:dividerHeight="0dp" />
101 </RelativeLayout>