File: secure_payment_confirmation.xml

package info (click to toggle)
chromium 139.0.7258.138-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,120,676 kB
  • sloc: cpp: 35,100,869; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (137 lines) | stat: -rw-r--r-- 6,395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<RelativeLayout
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:layout_width="match_parent">

  <!-- Drag handlebar -->
  <ImageView
      android:id="@+id/handlebar"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:paddingVertical="@dimen/secure_payment_confirmation_ui_drag_handle_spacing"
      android:importantForAccessibility="no"
      android:layout_centerHorizontal="true"
      android:src="@drawable/drag_handlebar" />

  <ScrollView
      android:id="@+id/scroll_view"
      android:layout_below="@id/handlebar"
      android:layout_height="wrap_content"
      android:layout_width="match_parent">

    <RelativeLayout
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:textDirection="locale"
        android:paddingHorizontal="@dimen/secure_payment_confirmation_ui_large_padding"
        android:paddingTop="@dimen/secure_payment_confirmation_ui_small_padding"
        android:paddingBottom="@dimen/secure_payment_confirmation_ui_large_padding">

      <!-- Default header image -->
      <ImageView
          android:id="@+id/secure_payment_confirmation_header_illustration"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"
          android:layout_marginBottom="@dimen/secure_payment_confirmation_ui_small_padding"
          android:scaleType="centerInside"
          android:importantForAccessibility="no"
          android:src="@drawable/secure_payment_confirmation_header_illustration" />

      <!-- Header logos row -->
      <LinearLayout
          android:id="@+id/header_logos_row"
          android:layout_below="@id/secure_payment_confirmation_header_illustration"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"
          android:orientation="horizontal"
          android:gravity="center"
          android:layout_marginTop="@dimen/secure_payment_confirmation_ui_small_padding"
          android:layout_marginBottom="@dimen/secure_payment_confirmation_ui_medium_padding"
          android:visibility="gone">

        <ImageView
            android:id="@+id/header_logo_primary"
            android:layout_height="@dimen/secure_payment_confirmation_ui_header_logo_height"
            android:layout_width="@dimen/secure_payment_confirmation_ui_header_logo_width"
            android:scaleType="fitEnd"
            android:contentDescription="@string/secure_payment_confirmation_header_logo_primary"/>

        <View
            style="@style/VerticalDivider"
            android:id="@+id/header_logos_divider"
            android:layout_marginHorizontal="@dimen/secure_payment_confirmation_ui_medium_padding"/>

        <ImageView
            android:id="@+id/header_logo_secondary"
            android:layout_height="@dimen/secure_payment_confirmation_ui_header_logo_height"
            android:layout_width="@dimen/secure_payment_confirmation_ui_header_logo_width"
            android:scaleType="fitStart"
            android:contentDescription="@string/secure_payment_confirmation_header_logo_secondary"/>
      </LinearLayout>

      <!-- SPC bottom sheet title -->
      <TextView
          android:id="@+id/secure_payment_confirmation_title"
          android:layout_below="@id/header_logos_row"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="@dimen/secure_payment_confirmation_ui_medium_padding"
          android:textAppearance="@style/TextAppearance.Headline.Primary"
          android:includeFontPadding="false"
          tools:text="Verify"/>

      <!-- List of item rows for SPC (includes "Store", "Payment", and "Total") -->
      <androidx.recyclerview.widget.RecyclerView
          android:id="@+id/item_list"
          android:layout_below="@id/secure_payment_confirmation_title"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"
          android:divider="@null"
          android:layout_marginBottom="@dimen/secure_payment_confirmation_ui_medium_padding"
          tools:listitem="@layout/list_item"/>

      <!-- Opt Out text, if requested by SPC caller -->
      <org.chromium.ui.widget.TextViewWithClickableSpans
          android:id="@+id/secure_payment_confirmation_nocredmatch_opt_out"
          android:layout_below="@id/item_list"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:gravity="center"
          android:layout_marginHorizontal="@dimen/secure_payment_confirmation_ui_small_padding"
          android:layout_marginBottom="@dimen/secure_payment_confirmation_ui_medium_padding"
          android:textAppearance="@style/TextAppearance.TextSmall.Secondary"/>

      <!-- Footnote text including a clickable link to "verify another way" -->
      <org.chromium.ui.widget.TextViewWithClickableSpans
          android:id="@+id/secure_payment_confirmation_footnote"
          android:layout_below="@id/secure_payment_confirmation_nocredmatch_opt_out"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:gravity="center"
          android:layout_marginHorizontal="@dimen/secure_payment_confirmation_ui_small_padding"
          android:layout_marginBottom="@dimen/secure_payment_confirmation_ui_medium_padding"
          android:textAppearance="@style/TextAppearance.TextSmall.Secondary"/>

      <!-- Continue button -->
      <org.chromium.ui.widget.ButtonCompat
          android:id="@+id/continue_button"
          android:layout_below="@id/secure_payment_confirmation_footnote"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"
          tools:text="Verify"
          style="@style/FilledButton"/>
    </RelativeLayout>
  </ScrollView>
</RelativeLayout>