OSDN Git Service

Eleven: much material
[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         android:elevation="2dp" >
14
15         <ImageView
16             android:id="@+id/album_art"
17             android:layout_width="108dp"
18             android:layout_height="108dp"
19             android:layout_marginRight="@dimen/standard_padding"
20             android:layout_alignParentTop="true"
21             android:layout_alignParentLeft="true"
22             android:scaleType="centerCrop" />
23
24         <RelativeLayout
25             android:id="@+id/header_info"
26             android:layout_width="wrap_content"
27             android:layout_height="fill_parent"
28             android:layout_toRightOf="@id/album_art"
29             android:gravity="center_vertical" >
30
31             <TextView
32                 android:id="@+id/title"
33                 android:layout_width="match_parent"
34                 android:layout_height="wrap_content"
35                 android:layout_alignParentTop="true"
36                 android:singleLine="true"
37                 android:textStyle="bold"
38                 android:textSize="@dimen/text_size_large"
39                 android:textColor="@color/default_text_color" />
40
41             <TextView
42                 android:id="@+id/song_count_and_year"
43                 android:layout_width="match_parent"
44                 android:layout_height="wrap_content"
45                 android:layout_below="@id/title"
46                 android:singleLine="true"
47                 android:textSize="@dimen/text_size_micro"
48                 android:textColor="@color/default_text_color" />
49
50             <TextView
51                 android:id="@+id/genre"
52                 android:layout_width="wrap_content"
53                 android:layout_height="wrap_content"
54                 android:layout_below="@id/song_count_and_year"
55                 android:layout_marginRight="@dimen/standard_padding"
56                 android:singleLine="true"
57                 android:textSize="@dimen/text_size_micro"
58                 android:textColor="@color/default_text_color"
59                 android:visibility="gone"
60                 android:layout_marginTop="4dp" />
61
62             <ImageView
63                 android:id="@+id/duration_icon"
64                 android:layout_width="10dp"
65                 android:layout_height="12dp"
66                 android:layout_below="@id/song_count_and_year"
67                 android:layout_toRightOf="@id/genre"
68                 android:layout_alignTop="@+id/duration"
69                 android:layout_alignBottom="@+id/duration"
70                 android:layout_marginRight="4dp"
71                 android:gravity="center"
72                 android:src="@drawable/stopwatch_icon_small_grey" />
73
74             <TextView
75                 android:id="@+id/duration"
76                 android:layout_width="wrap_content"
77                 android:layout_height="wrap_content"
78                 android:layout_below="@id/song_count_and_year"
79                 android:layout_toRightOf="@id/duration_icon"
80                 android:singleLine="true"
81                 android:textSize="@dimen/text_size_micro"
82                 android:textColor="@color/default_text_color"
83                 android:layout_marginTop="4dp" />
84         </RelativeLayout>
85
86     </RelativeLayout>
87
88     <include
89         layout="@layout/loading_empty_container" />
90
91     <ListView
92         android:id="@+id/songs"
93         android:layout_width="match_parent"
94         android:layout_height="match_parent"
95         android:layout_below="@id/header"
96         android:layout_alignParentLeft="true"
97         android:divider="@null"
98         android:dividerHeight="0dp" />
99 </RelativeLayout>