Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/android/java/res/layout/playback_notification_bar.xml

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved OnMediaSessionStateChanged to WebContentsImpl Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/android/java/AndroidManifest.xml ('k') | chrome/android/java/res/values-v17/styles.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <!-- 6 <!--
7 Notification layout for remote controls. 7 Notification layout for media controls.
8 ___________________________________________________________ 8 _______________________________________________________
9 | | | | 9 | | | |
10 | | [Living Room TV] | _ | 10 | | Playing [media title] | |
11 | ICON | =====0============================= | || |_| | 11 | ICON | =====0============================= | || |
12 | | Playing "[Web Page Title]" | | 12 | | [www.example.com] | |
13 |________|______________________________________|_________| 13 |________|______________________________________|_____|
14 --> 14 -->
15 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 15 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
16 android:layout_width="match_parent" 16 android:layout_width="match_parent"
17 android:layout_height="wrap_content" 17 android:layout_height="wrap_content"
18 android:gravity="center_vertical"> 18 android:gravity="center_vertical">
19 19
20 <FrameLayout 20 <FrameLayout
21 android:layout_width="@android:dimen/notification_large_icon_width" 21 android:layout_width="@android:dimen/notification_large_icon_width"
22 android:layout_height="@android:dimen/notification_large_icon_height" > 22 android:layout_height="@android:dimen/notification_large_icon_height" >
23 23
24 <ImageView 24 <ImageView
25 android:layout_width="match_parent" 25 android:layout_width="match_parent"
26 android:layout_height="match_parent" 26 android:layout_height="match_parent"
27 android:contentDescription="@null" 27 android:contentDescription="@null"
28 android:scaleType="centerInside" 28 android:scaleType="centerInside"
29 android:src="@drawable/notification_icon_bg" /> 29 android:src="@drawable/notification_icon_bg" />
30 30
31 <ImageView 31 <ImageView
32 android:id="@+id/icon" 32 android:id="@+id/icon"
33 android:layout_width="match_parent" 33 android:layout_width="match_parent"
34 android:layout_height="match_parent" 34 android:layout_height="match_parent"
35 android:contentDescription="@null" 35 android:contentDescription="@null"
36 android:scaleType="center" 36 android:scaleType="center"
37 android:src="@drawable/ic_notification_media_route" /> 37 android:src="@drawable/audio_playing" />
38 </FrameLayout> 38 </FrameLayout>
39 39
40 <LinearLayout 40 <LinearLayout
41 android:layout_width="0dp" 41 android:layout_width="0dp"
42 android:layout_height="wrap_content" 42 android:layout_height="wrap_content"
43 android:layout_marginStart="7dp"
44 android:layout_weight="1" 43 android:layout_weight="1"
45 android:orientation="vertical"> 44 android:orientation="vertical">
46 45
47 <TextView 46 <TextView
48 android:id="@+id/title" 47 android:id="@+id/title"
49 android:layout_width="match_parent" 48 android:layout_width="match_parent"
50 android:layout_height="wrap_content" 49 android:layout_height="wrap_content"
51 android:layout_gravity="start" 50 android:layout_gravity="start"
52 android:ellipsize="end" 51 android:ellipsize="end"
53 android:singleLine="true" 52 android:singleLine="true"
54 style="@style/RemoteNotificationTitle"/> 53 style="@style/MediaNotificationTitle"/>
55
56 <!-- android:visibility is set to 'gone' by default since we don't want to show it as long
57 as the duration of the video is unknown. The duration can be unknow n in the case of
58 live streaming videos or YouTube. -->
59 <ProgressBar
60 android:id="@+id/progress"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 android:visibility="gone"
64 style="@style/RemoteNotificationProgressBar"/>
65 54
66 <TextView 55 <TextView
67 android:id="@+id/status" 56 android:id="@+id/status"
68 android:layout_width="match_parent" 57 android:layout_width="match_parent"
69 android:layout_height="wrap_content" 58 android:layout_height="wrap_content"
70 android:layout_gravity="start" 59 android:layout_gravity="start"
71 android:ellipsize="end" 60 android:ellipsize="end"
72 android:singleLine="true" 61 android:singleLine="true"
73 style="@style/RemoteNotificationText"/> 62 style="@style/MediaNotificationText"/>
74 63
75 </LinearLayout> 64 </LinearLayout>
76 65
77 <ImageButton 66 <ImageButton
78 android:id="@+id/playpause" 67 android:id="@+id/playpause"
79 android:src="@drawable/ic_vidcontrol_play" 68 android:src="@drawable/ic_vidcontrol_play"
80 android:layout_width="40dp" 69 android:layout_width="wrap_content"
81 android:layout_height="48dp" 70 android:layout_height="match_parent"
82 android:layout_marginStart="8dp" 71 android:layout_marginEnd="8dp"
83 android:gravity="center" 72 android:gravity="center"
84 android:padding="8dp" 73 android:padding="12dp"
85 android:scaleType="center" 74 android:scaleType="center"
86 android:background="?android:attr/selectableItemBackground" 75 android:background="?android:attr/selectableItemBackground"
87 android:contentDescription="@null"/> 76 android:contentDescription="@null"/>
88 77
89 <ImageButton 78 </LinearLayout>
90 android:id="@+id/stop"
91 android:src="@drawable/ic_vidcontrol_stop"
92 android:layout_width="40dp"
93 android:layout_height="48dp"
94 android:layout_marginEnd="8dp"
95 android:gravity="center"
96 android:padding="8dp"
97 android:scaleType="center"
98 android:background="?android:attr/selectableItemBackground"
99 android:contentDescription="@string/accessibility_stop"/>
100
101 </LinearLayout>
OLDNEW
« no previous file with comments | « chrome/android/java/AndroidManifest.xml ('k') | chrome/android/java/res/values-v17/styles.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698