| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |