Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / android / java / res / layout / playback_notification_bar.xml
blob0a79741e1bb629b755e27a66708efce03a1a5462
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. -->
6 <!--
7   Notification layout for media controls.
8    _______________________________________________________
9    |        |                                      |     |
10    |        |  Playing [media title]               |     |
11    |  ICON  |  =====0============================= | ||  |
12    |        |  [www.example.com]                   |     |
13    |________|______________________________________|_____|
14 -->
15 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
16     android:layout_width="match_parent"
17     android:layout_height="wrap_content"
18     android:gravity="center_vertical">
20     <FrameLayout
21         android:layout_width="@android:dimen/notification_large_icon_width"
22         android:layout_height="@android:dimen/notification_large_icon_height" >
24         <ImageView
25             android:layout_width="match_parent"
26             android:layout_height="match_parent"
27             android:contentDescription="@null"
28             android:scaleType="centerInside"
29             android:src="@drawable/notification_icon_bg" />
31         <ImageView
32             android:id="@+id/icon"
33             android:layout_width="match_parent"
34             android:layout_height="match_parent"
35             android:contentDescription="@null"
36             android:scaleType="center"
37             android:src="@drawable/audio_playing" />
38     </FrameLayout>
40     <LinearLayout
41         android:layout_width="0dp"
42         android:layout_height="wrap_content"
43         android:layout_weight="1"
44         android:orientation="vertical">
46         <TextView
47             android:id="@+id/title"
48             android:layout_width="match_parent"
49             android:layout_height="wrap_content"
50             android:layout_gravity="start"
51             android:ellipsize="end"
52             android:singleLine="true"
53             style="@style/MediaNotificationTitle"/>
55         <TextView
56             android:id="@+id/status"
57             android:layout_width="match_parent"
58             android:layout_height="wrap_content"
59             android:layout_gravity="start"
60             android:ellipsize="end"
61             android:singleLine="true"
62             style="@style/MediaNotificationText"/>
64     </LinearLayout>
66     <ImageButton
67         android:id="@+id/playpause"
68         android:src="@drawable/ic_vidcontrol_play"
69         android:layout_width="wrap_content"
70         android:layout_height="match_parent"
71         android:layout_marginEnd="8dp"
72         android:gravity="center"
73         android:padding="12dp"
74         android:scaleType="center"
75         android:background="?android:attr/selectableItemBackground"
76         android:contentDescription="@null"/>
78     <ImageButton
79         android:id="@+id/stop"
80         android:src="@drawable/ic_vidcontrol_stop"
81         android:layout_width="wrap_content"
82         android:layout_height="match_parent"
83         android:layout_marginEnd="8dp"
84         android:gravity="center"
85         android:padding="12dp"
86         android:scaleType="center"
87         android:background="?android:attr/selectableItemBackground"
88         android:contentDescription="@string/accessibility_stop"
89         android:visibility="gone"/>
91 </LinearLayout>