OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. --> | |
5 | |
6 <!-- | |
7 Notification layout for remote controls. | |
8 author: bclayton@google.com (Ben Clayton) | |
aurimas (slooooooooow)
2015/03/20 16:34:06
these author tags are non standard in Chromium. Pl
aberent
2015/03/23 17:35:31
Done.
| |
9 author: johnme@google.com (John Mellor) | |
10 ___________________________________________________________ | |
11 | | | | | |
12 | | [Living Room TV] | _ | | |
13 | ICON | =====0============================= | || |_| | | |
14 | | Playing "[Web Page Title]" | | | |
15 |________|______________________________________|_________| | |
16 --> | |
17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
18 android:layout_width="match_parent" | |
19 android:layout_height="wrap_content" | |
20 android:gravity="center_vertical"> | |
21 | |
22 <FrameLayout | |
23 android:layout_width="@android:dimen/notification_large_icon_width" | |
24 android:layout_height="@android:dimen/notification_large_icon_height" > | |
25 | |
26 <ImageView | |
27 android:layout_width="match_parent" | |
28 android:layout_height="match_parent" | |
29 android:contentDescription="@null" | |
30 android:scaleType="centerInside" | |
31 android:src="@drawable/notification_icon_bg" /> | |
32 | |
33 <ImageView | |
34 android:id="@+id/icon" | |
35 android:layout_width="match_parent" | |
36 android:layout_height="match_parent" | |
37 android:contentDescription="@null" | |
38 android:scaleType="center" | |
39 android:src="@drawable/ic_notification_media_route" /> | |
40 </FrameLayout> | |
41 | |
42 <LinearLayout | |
43 android:layout_width="0dp" | |
44 android:layout_height="wrap_content" | |
45 android:layout_marginStart="7dp" | |
46 android:layout_weight="1" | |
47 android:orientation="vertical"> | |
48 | |
49 <TextView | |
50 android:id="@+id/title" | |
51 android:layout_width="match_parent" | |
52 android:layout_height="wrap_content" | |
53 android:layout_gravity="start" | |
54 android:ellipsize="end" | |
55 android:singleLine="true" | |
56 style="@style/RemoteNotificationTitle"/> | |
57 | |
58 <!-- android:visibility is set to 'gone' by default since we don't want to show it as long | |
59 as the duration of the video is unknown. The duration can be unknow n in the case of | |
60 live streaming videos or YouTube. --> | |
61 <ProgressBar | |
62 android:id="@+id/progress" | |
63 android:layout_width="match_parent" | |
64 android:layout_height="wrap_content" | |
65 android:visibility="gone" | |
66 style="@style/RemoteNotificationProgressBar"/> | |
67 | |
68 <TextView | |
69 android:id="@+id/status" | |
70 android:layout_width="match_parent" | |
71 android:layout_height="wrap_content" | |
72 android:layout_gravity="start" | |
73 android:ellipsize="end" | |
74 android:singleLine="true" | |
75 style="@style/RemoteNotificationText"/> | |
76 | |
77 </LinearLayout> | |
78 | |
79 <ImageButton | |
80 android:id="@+id/playpause" | |
81 android:src="@drawable/ic_vidcontrol_play" | |
82 android:layout_width="40dp" | |
83 android:layout_height="48dp" | |
84 android:layout_marginStart="8dp" | |
85 android:gravity="center" | |
86 android:padding="8dp" | |
87 android:scaleType="center" | |
88 android:background="?android:attr/selectableItemBackground" | |
89 android:contentDescription="@null"/> | |
90 | |
91 <ImageButton | |
92 android:id="@+id/stop" | |
93 android:src="@drawable/ic_vidcontrol_stop" | |
94 android:layout_width="40dp" | |
95 android:layout_height="48dp" | |
96 android:layout_marginEnd="8dp" | |
97 android:gravity="center" | |
98 android:padding="8dp" | |
99 android:scaleType="center" | |
100 android:background="?android:attr/selectableItemBackground" | |
101 android:contentDescription="@string/accessibility_stop"/> | |
102 | |
103 </LinearLayout> | |
OLD | NEW |