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

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

Issue 2119353003: Removing CustomLayout media notification logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
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
4 found in the LICENSE file. -->
5
6 <!--
7 Notification layout for media controls. Could have one or two buttons
8 depending on the corresponding media.
9 Local playback notification has one play/pause button on L+ but two buttons,
10 play/pause and stop button, on earlier Android versions as the notification
11 can't be dismissed by the swiping gesture.
12 Cast notification always has the stop button that stops casting but only has
13 the play/pause button if the Cast application controlled by the notification
14 supports play/pause.
15 The notification button ids are numbered from the right, so "R.id.button1" is
16 always present and "R.id.button2" may have the visibility GONE.
17 _______________________________________________________
18 | | | |
19 | | [media title] | |
20 | ICON |======================================| || |
21 | | [www.example.com] | |
22 |________|______________________________________|_____|
23 _______________________________________________________
24 | | | | |
25 | | [Cast device name] | | |
26 | ICON |================================| || | X |
27 | | [www.example.com] | | |
28 |________|________________________________|_____|_____|
29 -->
30 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:gravity="center_vertical">
34
35 <FrameLayout
36 android:layout_width="@android:dimen/notification_large_icon_width"
37 android:layout_height="@android:dimen/notification_large_icon_height" >
38
39 <ImageView
40 android:layout_width="match_parent"
41 android:layout_height="match_parent"
42 android:contentDescription="@null"
43 android:scaleType="centerInside"
44 android:src="@drawable/notification_icon_bg" />
45
46 <ImageView
47 android:id="@+id/icon"
48 android:layout_width="match_parent"
49 android:layout_height="match_parent"
50 android:contentDescription="@null"
51 android:scaleType="center"
52 android:src="@drawable/audio_playing" />
53 </FrameLayout>
54
55 <LinearLayout
56 android:layout_width="0dp"
57 android:layout_height="wrap_content"
58 android:layout_weight="1"
59 android:orientation="vertical">
60
61 <TextView
62 android:id="@+id/title"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:layout_gravity="start"
66 android:ellipsize="end"
67 android:singleLine="true"
68 style="@style/MediaNotificationTitle"/>
69
70 <TextView
71 android:id="@+id/status"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:layout_gravity="start"
75 android:ellipsize="end"
76 android:singleLine="true"
77 style="@style/MediaNotificationText"/>
78
79 </LinearLayout>
80
81 <ImageButton
82 android:id="@+id/button2"
83 android:src="@drawable/ic_vidcontrol_play"
84 android:layout_width="40dp"
85 android:layout_height="match_parent"
86 android:layout_marginStart="8dp"
87 android:gravity="center"
88 android:padding="8dp"
89 android:scaleType="center"
90 android:background="?android:attr/selectableItemBackground"
91 android:contentDescription="@null"
92 android:visibility="gone"/>
93
94 <ImageButton
95 android:id="@+id/button1"
96 android:src="@drawable/ic_vidcontrol_stop"
97 android:layout_width="40dp"
98 android:layout_height="match_parent"
99 android:layout_marginEnd="8dp"
100 android:gravity="center"
101 android:padding="8dp"
102 android:scaleType="center"
103 android:background="?android:attr/selectableItemBackground"
104 android:contentDescription="@null"/>
105
106 </LinearLayout>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698