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 <view xmlns:android="http://schemas.android.com/apk/res/android" | 6 <view xmlns:android="http://schemas.android.com/apk/res/android" |
7 class="org.chromium.chrome.browser.snackbar.SnackbarManager$WindowDismissalA
wareLayout" | 7 class="org.chromium.chrome.browser.snackbar.SnackbarManager$WindowDismissalA
wareLayout" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="wrap_content" | 9 android:layout_height="wrap_content" |
10 android:minHeight="@dimen/snackbar_min_height" | 10 android:minHeight="@dimen/snackbar_min_height" |
11 android:orientation="horizontal" > | 11 android:orientation="horizontal" > |
12 | 12 |
| 13 <ImageView android:id="@+id/snackbar_profile_image" |
| 14 android:layout_width="24dp" |
| 15 android:layout_height="24dp" |
| 16 android:layout_gravity="center_vertical" |
| 17 android:layout_marginStart="12dp" |
| 18 android:scaleType="fitCenter" |
| 19 android:visibility="visible" |
| 20 android:contentDescription="@null"/> |
| 21 |
13 <org.chromium.chrome.browser.snackbar.TemplatePreservingTextView | 22 <org.chromium.chrome.browser.snackbar.TemplatePreservingTextView |
14 android:id="@+id/snackbar_message" | 23 android:id="@+id/snackbar_message" |
15 android:layout_width="0dp" | 24 android:layout_width="0dp" |
16 android:layout_height="wrap_content" | 25 android:layout_height="wrap_content" |
17 android:layout_gravity="start|center_vertical" | 26 android:layout_gravity="start|center_vertical" |
18 android:layout_marginStart="24dp" | 27 android:layout_marginStart="24dp" |
19 android:layout_marginTop="14dp" | 28 android:layout_marginTop="14dp" |
20 android:layout_marginBottom="14dp" | 29 android:layout_marginBottom="14dp" |
21 android:layout_weight="1" | 30 android:layout_weight="1" |
22 android:textAlignment="viewStart" | 31 android:textAlignment="viewStart" |
23 android:textColor="@android:color/white" | 32 android:textColor="@android:color/white" |
24 android:textSize="14sp" /> | 33 android:textSize="14sp" /> |
25 | 34 |
26 <Button | 35 <Button |
27 android:id="@+id/snackbar_button" | 36 android:id="@+id/snackbar_button" |
28 android:layout_width="wrap_content" | 37 android:layout_width="wrap_content" |
29 android:layout_height="@dimen/snackbar_min_height" | 38 android:layout_height="@dimen/snackbar_min_height" |
30 android:layout_gravity="center_vertical" | 39 android:layout_gravity="center_vertical" |
31 android:paddingEnd="24dp" | 40 android:paddingEnd="24dp" |
32 android:paddingStart="24dp" | 41 android:paddingStart="24dp" |
33 android:fontFamily="sans-serif-medium" | 42 android:fontFamily="sans-serif-medium" |
34 android:textAllCaps="true" | 43 android:textAllCaps="true" |
35 android:textColor="@color/snackbar_button_color" | 44 android:textColor="@color/snackbar_button_color" |
36 android:textSize="14sp" | 45 android:textSize="14sp" |
37 style="@style/ButtonCompatBorderless" /> | 46 style="@style/ButtonCompatBorderless" /> |
38 | 47 |
39 </view> | 48 </view> |
OLD | NEW |