OSDN Git Service

296ec6e3bc153b46bc1c42242baad193686e5fea
[android-x86/packages-apps-Eleven.git] / res / layout / artist_detail_album.xml
1 <android.support.v7.widget.CardView
2     xmlns:android="http://schemas.android.com/apk/res/android"
3     android:layout_width="104dp"
4     android:layout_height="148dp"
5     android:layout_marginRight="8dp"
6     android:foreground="@drawable/selectable_background"
7     android:elevation="3dp">
8
9     <RelativeLayout
10         android:layout_width="match_parent"
11         android:layout_height="match_parent">
12
13         <ImageView
14             android:id="@+id/album_art"
15             android:layout_width="104dp"
16             android:layout_height="104dp"
17             android:layout_alignParentTop="true"
18             android:layout_alignParentLeft="true"
19             android:scaleType="centerCrop" />
20
21         <com.cyanogenmod.eleven.widgets.PopupMenuButton
22             android:id="@+id/overflow"
23             android:layout_width="@dimen/overflow_width"
24             android:layout_height="match_parent"
25             android:layout_below="@id/album_art"
26             android:layout_alignParentRight="true"
27             android:layout_marginBottom="1dp"
28             android:gravity="center_vertical"
29             android:src="@drawable/menu_button" />
30
31         <LinearLayout
32             android:layout_width="match_parent"
33             android:layout_height="match_parent"
34             android:orientation="vertical"
35             android:gravity="center_vertical"
36             android:layout_below="@id/album_art"
37             android:layout_toLeftOf="@id/overflow"
38             android:layout_alignParentLeft="true"
39             android:layout_marginLeft="8dp" >
40
41             <TextView
42                 android:id="@+id/title"
43                 style="@style/ListItemMainText.Single"
44                 android:textSize="@dimen/text_size_micro"
45                 android:layout_width="match_parent"
46                 android:layout_height="wrap_content" />
47
48             <TextView
49                 android:id="@+id/year"
50                 style="@style/ListItemSecondaryText.Single"
51                 android:textSize="@dimen/text_size_extra_micro"
52                 android:layout_width="match_parent"
53                 android:layout_height="wrap_content" />
54
55         </LinearLayout>
56
57     </RelativeLayout>
58
59 </android.support.v7.widget.CardView>