aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/select_album_header.xml
blob: b38bcf295d498478da13da2af7ff1ff51b1f6ad9 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@+id/select_album_header_wrapper"
	android:layout_height="wrap_content"
	android:layout_width="fill_parent">

	<RelativeLayout
		android:id="@+id/select_album_header"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:layout_gravity="top">

		<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"
				android:textColor="?android:textColorPrimary">

				<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"
				android:textColor="?android:textColorPrimary"/>

			<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"
				android:textColor="?android:textColorSecondary"/>

			<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"
				android:textColor="?android:textColorSecondary"/>

		</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="16dip"
			android:scaleType="fitCenter"
			android:contentDescription="@null"/>
	</RelativeLayout>

	<FrameLayout
		android:id="@+id/header_progress"
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		android:clickable="true"
		android:visibility="gone"
		android:layout_gravity="top">

		<LinearLayout
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:orientation="vertical"
			android:layout_gravity="center">

			<ProgressBar
				android:id="@+id/tab_progress_spinner"
				style="?android:attr/progressBarStyleLarge"
				android:layout_gravity="center_horizontal"
				android:layout_marginRight="6dp"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"/>

			<TextView
				android:id="@+id/tab_progress_message"
				android:text="@string/progress.artist_info"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_gravity="center_horizontal"
				android:textAppearance="?android:attr/textAppearanceMedium"
				android:textColor="?android:textColorPrimary"/>
		</LinearLayout>
	</FrameLayout>

	<View
		android:layout_width="fill_parent"
		android:layout_height="1dp"
		android:background="@drawable/default_menu_separator_background"
		android:layout_gravity="bottom"/>
</FrameLayout>