OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. --> | |
5 | |
6 <!-- Processing dialog. --> | |
7 <org.chromium.chrome.browser.widget.BoundedLinearLayout | |
8 xmlns:android="http://schemas.android.com/apk/res/android" | |
9 xmlns:chrome="http://schemas.android.com/apk/res-auto" | |
10 android:id="@+id/waiting_container" | |
11 android:orientation="vertical" | |
12 android:background="@drawable/menu_bg" | |
13 android:gravity="center" | |
14 chrome:maxWidth="@dimen/payments_ui_max_dialog_width" > | |
15 | |
16 <!-- Header containing information about the site. --> | |
17 <FrameLayout | |
18 android:layout_height="wrap_content" | |
19 android:layout_width="match_parent" | |
20 android:minHeight="64dp" > | |
21 | |
22 <ImageView | |
23 android:id="@+id/icon_view" | |
24 android:layout_height="24dp" | |
25 android:layout_width="24dp" | |
26 android:layout_marginStart="16dp" | |
27 android:layout_marginEnd="16dp" | |
28 android:layout_gravity="start|center_vertical" | |
29 android:importantForAccessibility="no" | |
30 android:scaleType="centerInside" /> | |
31 | |
32 <LinearLayout | |
33 android:layout_height="wrap_content" | |
34 android:layout_width="wrap_content" | |
35 android:layout_marginStart="56dp" | |
36 android:layout_marginEnd="16dp" | |
37 android:layout_marginBottom="@dimen/payments_section_vertical_spacin
g" | |
38 android:layout_marginTop="@dimen/payments_section_vertical_spacing" | |
39 android:layout_gravity="center_vertical" | |
40 android:orientation="vertical"> | |
41 | |
42 <TextView | |
43 android:id="@+id/page_title" | |
44 android:layout_height="wrap_content" | |
45 android:layout_width="wrap_content" | |
46 android:ellipsize="end" | |
47 android:maxLines="1" | |
48 android:singleLine="true" | |
49 android:textColor="@color/default_text_color" | |
50 android:textSize="16sp" | |
51 android:textStyle="bold" /> | |
52 | |
53 <TextView | |
54 android:id="@+id/hostname" | |
55 android:layout_height="wrap_content" | |
56 android:layout_width="wrap_content" | |
57 android:ellipsize="start" | |
58 android:maxLines="1" | |
59 android:singleLine="true" | |
60 android:textColor="@color/descriptive_text_color" | |
61 android:textSize="14sp" /> | |
62 </LinearLayout> | |
63 | |
64 </FrameLayout> | |
65 | |
66 <!-- Indeterminate spinny to show that things are processing. --> | |
67 <ProgressBar | |
68 android:id="@+id/waiting_progress" | |
69 android:layout_width="48dp" | |
70 android:layout_height="48dp" | |
71 android:layout_marginTop="@dimen/payments_section_largest_spacing" | |
72 android:layout_marginBottom="@dimen/payments_section_small_spacing" /> | |
73 | |
74 <!-- Message describing the result of the request. --> | |
75 <TextView | |
76 android:id="@+id/waiting_message" | |
77 android:layout_width="wrap_content" | |
78 android:layout_height="wrap_content" | |
79 android:layout_marginTop="@dimen/payments_section_small_spacing" | |
80 android:layout_marginStart="@dimen/payments_section_large_spacing" | |
81 android:layout_marginEnd="@dimen/payments_section_large_spacing" | |
82 android:layout_marginBottom="@dimen/payments_section_largest_spacing" | |
83 android:text="@string/payments_processing_message" | |
84 android:textColor="@color/descriptive_text_color" | |
85 android:textSize="16sp" /> | |
86 | |
87 <!-- Dismisses the dialog. --> | |
88 <Button | |
89 android:id="@+id/ok_button" | |
90 android:background="?android:attr/selectableItemBackground" | |
91 android:text="@string/ok" | |
92 android:layout_width="wrap_content" | |
93 android:layout_height="wrap_content" | |
94 android:layout_gravity="end" | |
95 android:layout_marginEnd="@dimen/payments_section_small_spacing" | |
96 android:layout_marginBottom="@dimen/payments_section_small_spacing" | |
97 android:textColor="@color/light_active_color" | |
98 android:visibility="gone" /> | |
99 </org.chromium.chrome.browser.widget.BoundedLinearLayout> | |
OLD | NEW |