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

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

Issue 1412483006: Notification custom layouts: use DateTimeView instead of TextView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CustomLayoutsTextStyling
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 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 Web notification custom layout. 7 Web notification custom layout.
8 _______________________________________________________ 8 _______________________________________________________
9 | | | 9 | | |
10 | Icon | Title text 1:23 pm | 10 | Icon | Title text 1:23 pm |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 android:layout_width="wrap_content" 43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content" 44 android:layout_height="wrap_content"
45 android:layout_toEndOf="@id/icon_frame" 45 android:layout_toEndOf="@id/icon_frame"
46 android:layout_toStartOf="@id/time" 46 android:layout_toStartOf="@id/time"
47 android:layout_alignParentTop="true" 47 android:layout_alignParentTop="true"
48 android:layout_marginTop="4dp" 48 android:layout_marginTop="4dp"
49 android:singleLine="true" 49 android:singleLine="true"
50 android:ellipsize="end" 50 android:ellipsize="end"
51 style="@style/WebNotificationTitle"/> 51 style="@style/WebNotificationTitle"/>
52 52
53 <TextView 53 <DateTimeView
54 android:id="@+id/time" 54 android:id="@+id/time"
55 android:layout_width="wrap_content" 55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content" 56 android:layout_height="wrap_content"
57 android:layout_alignParentEnd="true" 57 android:layout_alignParentEnd="true"
58 android:layout_alignParentTop="true" 58 android:layout_alignParentTop="true"
59 android:singleLine="true" 59 android:singleLine="true"
60 android:layout_marginStart="8dp"
Peter Beverloo 2015/10/27 18:17:21 dito
61 android:layout_marginEnd="8dp"
62 android:layout_marginTop="8dp"
60 style="@style/WebNotificationTime"/> 63 style="@style/WebNotificationTime"/>
61 64
62 <TextView 65 <TextView
63 android:id="@+id/body" 66 android:id="@+id/body"
64 android:layout_width="wrap_content" 67 android:layout_width="wrap_content"
65 android:layout_height="wrap_content" 68 android:layout_height="wrap_content"
66 android:layout_toEndOf="@id/icon_frame" 69 android:layout_toEndOf="@id/icon_frame"
67 android:layout_alignParentEnd="true" 70 android:layout_alignParentEnd="true"
68 android:layout_below="@id/title" 71 android:layout_below="@id/title"
69 android:layout_marginTop="-1dp" 72 android:layout_marginTop="-1dp"
70 android:layout_marginBottom="-1dp" 73 android:layout_marginBottom="-1dp"
71 android:layout_marginEnd="6dp" 74 android:layout_marginEnd="6dp"
72 android:singleLine="true" 75 android:singleLine="true"
73 android:ellipsize="end" 76 android:ellipsize="end"
74 style="@style/WebNotificationBody"/> 77 style="@style/WebNotificationBody"/>
75 78
76 <TextView 79 <TextView
77 android:id="@+id/origin" 80 android:id="@+id/origin"
78 android:layout_width="wrap_content" 81 android:layout_width="wrap_content"
79 android:layout_height="wrap_content" 82 android:layout_height="wrap_content"
80 android:layout_toEndOf="@id/icon_frame" 83 android:layout_toEndOf="@id/icon_frame"
81 android:layout_alignParentEnd="true" 84 android:layout_alignParentEnd="true"
82 android:layout_below="@id/body" 85 android:layout_below="@id/body"
83 android:singleLine="true" 86 android:singleLine="true"
84 android:ellipsize="end" 87 android:ellipsize="end"
85 style="@style/WebNotificationOrigin"/> 88 style="@style/WebNotificationOrigin"/>
86 89
87 </RelativeLayout> 90 </RelativeLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698