Changeset View
Changeset View
Standalone View
Standalone View
res/layout/mpris_control.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 3 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
4 | xmlns:app="http://schemas.android.com/apk/res-auto" | 4 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||
5 | android:orientation="vertical" | 5 | android:id="@+id/mpris_control_view" | ||
6 | android:layout_width="match_parent" | 6 | android:layout_width="match_parent" | ||
7 | android:layout_height="match_parent" | 7 | android:layout_height="match_parent" | ||
8 | android:id="@+id/mpris_control_view" | 8 | android:layout_gravity="center" | ||
9 | android:gravity="center" | 9 | android:gravity="center" | ||
10 | android:layout_gravity="center"> | 10 | android:orientation="vertical"> | ||
11 | 11 | | |||
12 | <TextView | 12 | <TextView | ||
13 | android:id="@+id/no_players" | ||||
13 | android:layout_width="wrap_content" | 14 | android:layout_width="wrap_content" | ||
14 | android:layout_height="wrap_content" | 15 | android:layout_height="wrap_content" | ||
15 | android:textAppearance="?android:attr/textAppearanceMedium" | 16 | android:layout_gravity="center_horizontal" | ||
16 | android:text="@string/no_players_connected" | 17 | android:text="@string/no_players_connected" | ||
17 | android:id="@+id/no_players" | 18 | android:textAppearance="?android:attr/textAppearanceMedium" /> | ||
18 | android:layout_gravity="center_horizontal" /> | | |||
19 | 19 | | |||
20 | <Spinner | 20 | <Spinner | ||
21 | android:id="@+id/player_spinner" | ||||
21 | android:layout_width="match_parent" | 22 | android:layout_width="match_parent" | ||
22 | android:layout_height="wrap_content" | 23 | android:layout_height="wrap_content" | ||
23 | android:id="@+id/player_spinner" | 24 | android:layout_gravity="center" /> | ||
24 | android:layout_gravity="center" | | |||
25 | /> | | |||
26 | 25 | | |||
27 | <TextView | 26 | <TextView | ||
27 | android:id="@+id/now_playing_textview" | ||||
28 | android:layout_width="wrap_content" | 28 | android:layout_width="wrap_content" | ||
29 | android:layout_height="wrap_content" | 29 | android:layout_height="wrap_content" | ||
30 | android:textAppearance="?android:attr/textAppearanceMedium" | 30 | android:layout_gravity="center" | ||
31 | android:id="@+id/now_playing_textview" | | |||
32 | android:ellipsize="marquee" | 31 | android:ellipsize="marquee" | ||
32 | android:gravity="center" | ||||
33 | android:marqueeRepeatLimit="marquee_forever" | 33 | android:marqueeRepeatLimit="marquee_forever" | ||
34 | android:padding="8dip" | ||||
34 | android:scrollHorizontally="true" | 35 | android:scrollHorizontally="true" | ||
35 | android:singleLine="true" | 36 | android:singleLine="true" | ||
36 | android:gravity="center" | 37 | android:textAppearance="?android:attr/textAppearanceMedium" /> | ||
37 | android:padding="8dip" | | |||
38 | android:layout_gravity="center" | | |||
39 | /> | | |||
40 | 38 | | |||
41 | <ImageButton | 39 | <ImageButton | ||
40 | android:id="@+id/play_button" | ||||
42 | android:layout_width="fill_parent" | 41 | android:layout_width="fill_parent" | ||
43 | android:layout_height="75dp" | 42 | android:layout_height="75dp" | ||
44 | android:id="@+id/play_button" | | |||
45 | android:src="@drawable/ic_play_black" | | |||
46 | android:contentDescription="@string/mpris_play" | | |||
47 | android:layout_gravity="center" | 43 | android:layout_gravity="center" | ||
48 | android:layout_weight="0" | 44 | android:layout_weight="0" | ||
49 | android:clickable="false" | | |||
50 | android:adjustViewBounds="false" | 45 | android:adjustViewBounds="false" | ||
51 | android:baselineAlignBottom="true" /> | 46 | android:baselineAlignBottom="true" | ||
47 | android:clickable="false" | ||||
48 | android:contentDescription="@string/mpris_play" | ||||
49 | android:src="@drawable/ic_play_black" /> | ||||
52 | 50 | | |||
53 | <LinearLayout | 51 | <LinearLayout | ||
54 | android:orientation="horizontal" | | |||
55 | android:layout_width="match_parent" | 52 | android:layout_width="match_parent" | ||
56 | android:layout_height="60dip" | 53 | android:layout_height="60dip" | ||
57 | android:layout_gravity="center" | 54 | android:layout_gravity="center" | ||
58 | > | 55 | android:orientation="horizontal"> | ||
59 | 56 | | |||
60 | <ImageButton | 57 | <ImageButton | ||
58 | android:id="@+id/prev_button" | ||||
61 | android:layout_width="match_parent" | 59 | android:layout_width="match_parent" | ||
62 | android:layout_height="fill_parent" | 60 | android:layout_height="fill_parent" | ||
63 | android:id="@+id/prev_button" | | |||
64 | android:src="@drawable/ic_previous_black" | | |||
65 | android:contentDescription="@string/mpris_previous" | | |||
66 | android:layout_weight="0.25" | 61 | android:layout_weight="0.25" | ||
67 | /> | 62 | android:contentDescription="@string/mpris_previous" | ||
63 | android:src="@drawable/ic_previous_black" /> | ||||
68 | 64 | | |||
69 | <ImageButton | 65 | <ImageButton | ||
66 | android:id="@+id/rew_button" | ||||
70 | android:layout_width="match_parent" | 67 | android:layout_width="match_parent" | ||
71 | android:layout_height="fill_parent" | 68 | android:layout_height="fill_parent" | ||
72 | android:id="@+id/rew_button" | | |||
73 | android:src="@drawable/ic_rewind_black" | | |||
74 | android:contentDescription="@string/mpris_rew" | | |||
75 | android:layout_weight="0.25" | 69 | android:layout_weight="0.25" | ||
76 | /> | 70 | android:contentDescription="@string/mpris_rew" | ||
71 | android:src="@drawable/ic_rewind_black" /> | ||||
77 | 72 | | |||
78 | <ImageButton | 73 | <ImageButton | ||
74 | android:id="@+id/ff_button" | ||||
79 | android:layout_width="match_parent" | 75 | android:layout_width="match_parent" | ||
80 | android:layout_height="fill_parent" | 76 | android:layout_height="fill_parent" | ||
81 | android:id="@+id/ff_button" | | |||
82 | android:src="@drawable/ic_fast_forward_black" | | |||
83 | android:contentDescription="@string/mpris_ff" | | |||
84 | android:layout_weight="0.25" | 77 | android:layout_weight="0.25" | ||
85 | /> | 78 | android:contentDescription="@string/mpris_ff" | ||
79 | android:src="@drawable/ic_fast_forward_black" /> | ||||
86 | 80 | | |||
87 | <ImageButton | 81 | <ImageButton | ||
82 | android:id="@+id/next_button" | ||||
88 | android:layout_width="match_parent" | 83 | android:layout_width="match_parent" | ||
89 | android:layout_height="fill_parent" | 84 | android:layout_height="fill_parent" | ||
90 | android:id="@+id/next_button" | | |||
91 | android:src="@drawable/ic_next_black" | | |||
92 | android:contentDescription="@string/mpris_next" | | |||
93 | android:layout_weight="0.25" | 85 | android:layout_weight="0.25" | ||
94 | /> | 86 | android:contentDescription="@string/mpris_next" | ||
87 | android:src="@drawable/ic_next_black" /> | ||||
95 | 88 | | |||
96 | </LinearLayout> | 89 | </LinearLayout> | ||
97 | 90 | | |||
98 | <LinearLayout | 91 | <LinearLayout | ||
99 | android:orientation="horizontal" | 92 | android:id="@+id/progress_slider" | ||
100 | android:layout_width="match_parent" | 93 | android:layout_width="match_parent" | ||
101 | android:layout_height="wrap_content" | 94 | android:layout_height="wrap_content" | ||
102 | android:id="@+id/progress_slider"> | 95 | android:orientation="horizontal"> | ||
103 | 96 | | |||
104 | <TextView | 97 | <TextView | ||
98 | android:id="@+id/progress_textview" | ||||
105 | android:layout_width="wrap_content" | 99 | android:layout_width="wrap_content" | ||
106 | android:layout_height="wrap_content" | 100 | android:layout_height="wrap_content" | ||
107 | android:textAppearance="?android:attr/textAppearanceMedium" | 101 | android:layout_gravity="center" | ||
108 | android:id="@+id/progress_textview" | | |||
109 | android:singleLine="true" | | |||
110 | android:gravity="center" | 102 | android:gravity="center" | ||
111 | android:padding="8dip" | 103 | android:padding="8dip" | ||
112 | android:layout_gravity="center" | 104 | android:singleLine="true" | ||
113 | android:text="00:00" /> | 105 | android:text="00:00" | ||
106 | android:textAppearance="?android:attr/textAppearanceMedium" /> | ||||
114 | 107 | | |||
115 | <SeekBar | 108 | <SeekBar | ||
109 | android:id="@+id/positionSeek" | ||||
116 | android:layout_width="wrap_content" | 110 | android:layout_width="wrap_content" | ||
117 | android:layout_height="wrap_content" | 111 | android:layout_height="wrap_content" | ||
118 | android:id="@+id/positionSeek" | 112 | android:layout_gravity="center" | ||
119 | android:layout_weight="1" | 113 | android:layout_weight="1" /> | ||
120 | android:layout_gravity="center" /> | | |||
121 | 114 | | |||
122 | <TextView | 115 | <TextView | ||
116 | android:id="@+id/time_textview" | ||||
123 | android:layout_width="wrap_content" | 117 | android:layout_width="wrap_content" | ||
124 | android:layout_height="wrap_content" | 118 | android:layout_height="wrap_content" | ||
125 | android:textAppearance="?android:attr/textAppearanceMedium" | 119 | android:layout_gravity="center" | ||
126 | android:id="@+id/time_textview" | | |||
127 | android:singleLine="true" | | |||
128 | android:gravity="center" | 120 | android:gravity="center" | ||
129 | android:padding="8dip" | 121 | android:padding="8dip" | ||
130 | android:layout_gravity="center" | 122 | android:singleLine="true" | ||
131 | android:text="00:00" /> | 123 | android:text="00:00" | ||
124 | android:textAppearance="?android:attr/textAppearanceMedium" /> | ||||
132 | </LinearLayout> | 125 | </LinearLayout> | ||
133 | 126 | | |||
134 | <LinearLayout | 127 | <LinearLayout | ||
135 | android:orientation="horizontal" | 128 | android:id="@+id/volume_layout" | ||
136 | android:layout_width="match_parent" | 129 | android:layout_width="match_parent" | ||
137 | android:layout_height="wrap_content" | 130 | android:layout_height="wrap_content" | ||
138 | android:id="@+id/volume_layout" | | |||
139 | android:layout_gravity="center" | 131 | android:layout_gravity="center" | ||
140 | android:layout_marginTop="8dip"> | 132 | android:layout_marginTop="8dip" | ||
133 | android:orientation="horizontal"> | ||||
141 | 134 | | |||
142 | <ImageView | 135 | <ImageView | ||
136 | android:id="@+id/imageView" | ||||
143 | android:layout_width="30dip" | 137 | android:layout_width="30dip" | ||
144 | android:layout_height="30dip" | 138 | android:layout_height="30dip" | ||
145 | android:maxWidth="30dip" | | |||
146 | android:layout_marginRight="10dip" | | |||
147 | android:layout_marginEnd="10dip" | 139 | android:layout_marginEnd="10dip" | ||
148 | android:id="@+id/imageView" | 140 | android:layout_marginRight="10dip" | ||
149 | android:layout_weight="0" | 141 | android:layout_weight="0" | ||
150 | android:contentDescription="@string/mpris_volume" | 142 | android:contentDescription="@string/mpris_volume" | ||
151 | android:src="@drawable/ic_volume_black" | 143 | android:maxWidth="30dip" | ||
152 | /> | 144 | android:src="@drawable/ic_volume_black" /> | ||
153 | 145 | | |||
154 | 146 | | |||
155 | <SeekBar | 147 | <SeekBar | ||
148 | android:id="@+id/volume_seek" | ||||
156 | android:layout_width="wrap_content" | 149 | android:layout_width="wrap_content" | ||
157 | android:layout_height="wrap_content" | 150 | android:layout_height="wrap_content" | ||
158 | android:id="@+id/volume_seek" | | |||
159 | android:layout_weight="1" | | |||
160 | android:max="100" | | |||
161 | android:layout_gravity="center" | 151 | android:layout_gravity="center" | ||
162 | /> | 152 | android:layout_weight="1" | ||
153 | android:max="100" /> | ||||
163 | 154 | | |||
164 | </LinearLayout> | 155 | </LinearLayout> | ||
165 | 156 | | |||
166 | <!-- | 157 | <!-- | ||
167 | <ImageButton | 158 | <ImageButton | ||
168 | android:layout_width="wrap_content" | 159 | android:layout_width="wrap_content" | ||
169 | android:layout_height="wrap_content" | 160 | android:layout_height="wrap_content" | ||
170 | android:id="@+id/pause_button" | 161 | android:id="@+id/pause_button" | ||
Show All 11 Lines |