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