aboutsummaryrefslogtreecommitdiff
path: root/res/layout/select_album_header.xml
blob: f9eff4e8ef98213b0dfc25677042163474e9cb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@+id/select_album_header"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content">

	<LinearLayout
		android:id="@+id/select_album_text_layout"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:layout_toRightOf="@+id/select_album_art"
		android:orientation="vertical"
		android:layout_centerVertical="true">

		<TextView
			android:text="This is the album title"
			android:id="@+id/select_album_title"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textAppearance="?android:attr/textAppearanceLarge"
			android:textStyle="bold"
			android:singleLine="true"
			android:ellipsize="marquee"
			android:marqueeRepeatLimit="marquee_forever"
			android:scrollHorizontally="true"
			android:focusable="true"
			android:focusableInTouchMode="true">

			<requestFocus android:focusable="true"
				android:focusableInTouchMode="true"
				android:duplicateParentState="true" />
		</TextView>

		<TextView
			android:text="This is the artist name"
			android:id="@+id/select_album_artist"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textAppearance="?android:attr/textAppearanceMedium"
			android:singleLine="true"
			android:ellipsize="end"/>

		<TextView
			android:text="XX SONGS"
			android:id="@+id/select_album_song_count"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:paddingTop="14dip"
			android:textAppearance="?android:attr/textAppearanceSmall"
			android:singleLine="true"
			android:ellipsize="none"/>

		<TextView
			android:text="0:00"
			android:id="@+id/select_album_song_length"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textAppearance="?android:attr/textAppearanceSmall"
			android:singleLine="true"
			android:ellipsize="none"/>

	</LinearLayout>

	<LinearLayout
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignParentBottom="true"
		android:layout_alignParentRight="true"
		android:padding="10dip">

		<LinearLayout
			android:id="@+id/select_album_rate_wrapper"
			android:layout_width="wrap_content"
			android:layout_height="fill_parent">

			<RatingBar
				android:id="@+id/select_album_rate"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:numStars="5"
				style="@android:style/Widget.Holo.RatingBar.Small"
				android:layout_gravity="center_vertical"/>
		</LinearLayout>

		<ImageButton
			android:id="@+id/select_album_star"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			style="@style/BasicButton"
			android:src="@android:drawable/star_big_off"
			android:layout_gravity="center_vertical"/>

		<ImageView
			android:id="@+id/select_album_share"
			android:layout_height="wrap_content"
			android:layout_width="wrap_content"
			android:scaleType="fitCenter"
			android:src="?attr/share"
			style="@style/BasicButton"
			android:layout_gravity="center_vertical"/>
	</LinearLayout>

	<github.daneren2005.dsub.view.RecyclingImageView
		android:id="@+id/select_album_art"
		android:layout_width="@dimen/AlbumArt.Header"
		android:layout_height="@dimen/AlbumArt.Header"
		android:layout_alignParentTop="true"
		android:layout_alignParentLeft="true"
		android:layout_marginRight="10dip"
		android:scaleType="fitCenter"
		android:contentDescription="@null"/>
</RelativeLayout>