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/payment_request_header.xml

Issue 2698703003: [Payments] Add UI elements to secure branding for payments (Closed)
Patch Set: Created 3 years, 10 months 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 2016 The Chromium Authors. All rights reserved. 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 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 <!-- Header containing information about the site. 6 <!-- Header containing information about the site.
7 Java code inflating this layout manages the hiding and adjustment of elemen ts in the layout. 7 Java code inflating this layout manages the hiding and adjustment of elemen ts in the layout.
8 Request dialog: Displays an X in the top right corner, allowing the user to close it. 8 Request dialog: Displays an X in the top right corner, allowing the user to close it.
9 Result dialog: Displays no X. Title goes all the way to the end. 9 Result dialog: Displays no X. Title goes all the way to the end.
10 --> 10 -->
(...skipping 12 matching lines...) Expand all
23 android:layout_marginStart="16dp" 23 android:layout_marginStart="16dp"
24 android:layout_marginEnd="16dp" 24 android:layout_marginEnd="16dp"
25 android:layout_gravity="start|center_vertical" 25 android:layout_gravity="start|center_vertical"
26 android:importantForAccessibility="no" 26 android:importantForAccessibility="no"
27 android:scaleType="centerInside" /> 27 android:scaleType="centerInside" />
28 28
29 <LinearLayout 29 <LinearLayout
30 android:id="@+id/page_info" 30 android:id="@+id/page_info"
31 android:layout_height="wrap_content" 31 android:layout_height="wrap_content"
32 android:layout_width="wrap_content" 32 android:layout_width="wrap_content"
33 android:layout_marginStart="56dp"
34 android:layout_marginEnd="56dp" 33 android:layout_marginEnd="56dp"
35 android:layout_marginBottom="@dimen/payments_section_vertical_spacin g" 34 android:layout_marginBottom="@dimen/payments_section_vertical_spacin g"
36 android:layout_marginTop="@dimen/payments_section_vertical_spacing" 35 android:layout_marginTop="@dimen/payments_section_vertical_spacing"
37 android:layout_gravity="center_vertical" 36 android:layout_gravity="center_vertical"
38 android:orientation="vertical"> 37 android:orientation="vertical">
39 38
40 <TextView 39 <TextView
41 android:id="@+id/page_title" 40 android:id="@+id/page_title"
42 android:layout_height="wrap_content" 41 android:layout_height="wrap_content"
43 android:layout_width="wrap_content" 42 android:layout_width="wrap_content"
43 android:layout_marginStart="56dp"
44 android:ellipsize="end" 44 android:ellipsize="end"
45 android:maxLines="1" 45 android:maxLines="1"
46 android:singleLine="true" 46 android:singleLine="true"
47 android:textColor="@color/default_text_color" 47 android:textColor="@color/default_text_color"
48 android:textSize="16sp" 48 android:textSize="16sp"
49 android:textStyle="bold" /> 49 android:textStyle="bold" />
50 50
51 <TextView 51 <TextView
52 android:id="@+id/hostname" 52 android:id="@+id/hostname"
53 android:layout_height="wrap_content" 53 android:layout_height="wrap_content"
54 android:layout_width="wrap_content" 54 android:layout_width="wrap_content"
55 android:layout_marginStart="50dp"
56 android:gravity="center_vertical"
55 android:ellipsize="start" 57 android:ellipsize="start"
56 android:maxLines="1" 58 android:maxLines="1"
57 android:singleLine="true" 59 android:singleLine="true"
58 android:textColor="@color/descriptive_text_color" 60 android:textColor="@color/descriptive_text_color"
59 android:textSize="14sp" /> 61 android:textSize="14sp" />
60 </LinearLayout> 62 </LinearLayout>
61 63
62 <ImageView 64 <ImageView
63 android:id="@+id/close_button" 65 android:id="@+id/close_button"
64 android:layout_gravity="end|center_vertical" 66 android:layout_gravity="end|center_vertical"
65 android:layout_height="56dp" 67 android:layout_height="56dp"
66 android:layout_width="56dp" 68 android:layout_width="56dp"
67 android:src="@drawable/btn_close" 69 android:src="@drawable/btn_close"
68 android:contentDescription="@string/close" 70 android:contentDescription="@string/close"
69 android:background="?attr/selectableItemBackground" 71 android:background="?attr/selectableItemBackground"
70 android:scaleType="center" /> 72 android:scaleType="center" />
71 </FrameLayout> 73 </FrameLayout>
72 74
73 </merge> 75 </merge>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698