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

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

Issue 1405143003: Notification custom layouts: adjust title and body text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | chrome/android/java/res/layout/web_notification_big.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 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 27 matching lines...) Expand all
38 38
39 </FrameLayout> 39 </FrameLayout>
40 40
41 <TextView 41 <TextView
42 android:id="@+id/title" 42 android:id="@+id/title"
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:singleLine="true" 49 android:singleLine="true"
49 android:ellipsize="end" 50 android:ellipsize="end"
50 style="@style/WebNotificationTitle"/> 51 style="@style/WebNotificationTitle"/>
51 52
52 <TextView 53 <TextView
53 android:id="@+id/time" 54 android:id="@+id/time"
54 android:layout_width="wrap_content" 55 android:layout_width="wrap_content"
55 android:layout_height="wrap_content" 56 android:layout_height="wrap_content"
56 android:layout_alignParentEnd="true" 57 android:layout_alignParentEnd="true"
57 android:layout_alignParentTop="true" 58 android:layout_alignParentTop="true"
58 android:singleLine="true" 59 android:singleLine="true"
59 style="@style/WebNotificationTime"/> 60 style="@style/WebNotificationTime"/>
60 61
61 <TextView 62 <TextView
62 android:id="@+id/body" 63 android:id="@+id/body"
63 android:layout_width="wrap_content" 64 android:layout_width="wrap_content"
64 android:layout_height="wrap_content" 65 android:layout_height="wrap_content"
65 android:layout_toEndOf="@id/icon_frame" 66 android:layout_toEndOf="@id/icon_frame"
66 android:layout_alignParentEnd="true" 67 android:layout_alignParentEnd="true"
67 android:layout_below="@id/title" 68 android:layout_below="@id/title"
69 android:layout_marginTop="-1dp"
70 android:layout_marginBottom="-1dp"
71 android:layout_marginEnd="6dp"
68 android:singleLine="true" 72 android:singleLine="true"
69 android:ellipsize="end" 73 android:ellipsize="end"
70 style="@style/WebNotificationBody"/> 74 style="@style/WebNotificationBody"/>
71 75
72 <TextView 76 <TextView
73 android:id="@+id/origin" 77 android:id="@+id/origin"
74 android:layout_width="wrap_content" 78 android:layout_width="wrap_content"
75 android:layout_height="wrap_content" 79 android:layout_height="wrap_content"
76 android:layout_toEndOf="@id/icon_frame" 80 android:layout_toEndOf="@id/icon_frame"
77 android:layout_alignParentEnd="true" 81 android:layout_alignParentEnd="true"
78 android:layout_below="@id/body" 82 android:layout_below="@id/body"
79 android:singleLine="true" 83 android:singleLine="true"
80 android:ellipsize="end" 84 android:ellipsize="end"
81 style="@style/WebNotificationOrigin"/> 85 style="@style/WebNotificationOrigin"/>
82 86
83 </RelativeLayout> 87 </RelativeLayout>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/res/layout/web_notification_big.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698