|
5 | 5 | android:layout_width="match_parent" |
6 | 6 | android:layout_height="wrap_content"> |
7 | 7 |
|
8 | | - <com.google.android.flexbox.FlexboxLayout |
| 8 | + <LinearLayout |
9 | 9 | android:layout_width="match_parent" |
10 | 10 | android:layout_height="match_parent" |
11 | | - android:layout_above="@+id/bottom_container" |
12 | | - android:paddingTop="8dp" |
13 | | - android:paddingBottom="8dp" |
14 | | - app:flexDirection="column" |
15 | | - app:justifyContent="center" |
16 | | - app:flexWrap="nowrap"> |
17 | | - <FrameLayout |
18 | | - android:id="@+id/step1" |
| 11 | + android:orientation="vertical" |
| 12 | + android:gravity="center"> |
| 13 | + <io.snabble.sdk.ui.scanner.BarcodeView |
| 14 | + android:id="@+id/checkout_id_code" |
19 | 15 | android:layout_width="match_parent" |
20 | | - android:layout_height="wrap_content" |
21 | | - android:layout_gravity="center_horizontal" |
22 | | - app:layout_maxHeight="80dp" |
23 | | - app:layout_flexGrow="1"> |
24 | | - |
25 | | - <ProgressBar |
26 | | - style="?android:attr/progressBarStyleHorizontal" |
27 | | - android:layout_width="match_parent" |
28 | | - android:layout_height="wrap_content" |
29 | | - android:layout_gravity="bottom" |
30 | | - android:layout_marginBottom="4dp" |
31 | | - android:tag="progress" /> |
32 | | - |
33 | | - <androidx.appcompat.widget.AppCompatImageView |
34 | | - android:layout_width="60dp" |
35 | | - android:layout_height="60dp" |
36 | | - android:adjustViewBounds="true" |
37 | | - android:layout_gravity="bottom|center_horizontal" |
38 | | - android:scaleType="centerInside" |
39 | | - android:src="@drawable/ic_verify_1" |
40 | | - android:tag="image" /> |
41 | | - |
42 | | - <androidx.appcompat.widget.AppCompatImageView |
43 | | - android:layout_width="60dp" |
44 | | - android:layout_height="60dp" |
45 | | - android:adjustViewBounds="true" |
46 | | - android:layout_gravity="bottom|center_horizontal" |
47 | | - android:alpha="0" |
48 | | - android:scaleType="centerInside" |
49 | | - android:src="@drawable/ic_verify_ok" |
50 | | - android:tag="image_ok" /> |
51 | | - </FrameLayout> |
| 16 | + android:layout_height="168dp" |
| 17 | + android:background="?android:attr/windowBackground" |
| 18 | + app:format="DATA_MATRIX" |
| 19 | + tools:ignore="RtlHardcoded" /> |
52 | 20 |
|
53 | 21 | <TextView |
54 | | - android:layout_width="wrap_content" |
55 | | - android:layout_height="wrap_content" |
56 | | - android:layout_gravity="center_horizontal" |
57 | | - app:layout_maxHeight="48dp" |
58 | | - app:layout_flexGrow="0.5" |
59 | | - android:gravity="center" |
60 | | - android:text="@string/Snabble.PaymentStatus.step1" |
61 | | - android:textSize="15sp" /> |
62 | | - |
63 | | - <FrameLayout |
64 | | - android:id="@+id/step2" |
| 22 | + android:id="@+id/message" |
65 | 23 | android:layout_width="match_parent" |
66 | 24 | android:layout_height="wrap_content" |
67 | | - android:layout_gravity="center_horizontal" |
68 | | - app:layout_maxHeight="80dp" |
69 | | - app:layout_flexGrow="1"> |
70 | | - |
71 | | - <ProgressBar |
72 | | - style="?android:attr/progressBarStyleHorizontal" |
73 | | - android:layout_width="match_parent" |
74 | | - android:layout_height="wrap_content" |
75 | | - android:layout_gravity="bottom" |
76 | | - android:layout_marginBottom="4dp" |
77 | | - android:tag="progress" /> |
78 | | - |
79 | | - <androidx.appcompat.widget.AppCompatImageView |
80 | | - android:layout_width="60dp" |
81 | | - android:layout_height="60dp" |
82 | | - android:adjustViewBounds="true" |
83 | | - android:layout_gravity="bottom|center_horizontal" |
84 | | - android:scaleType="centerInside" |
85 | | - android:src="@drawable/ic_verify_2" |
86 | | - android:tag="image" /> |
87 | | - |
88 | | - <androidx.appcompat.widget.AppCompatImageView |
89 | | - android:layout_width="60dp" |
90 | | - android:layout_height="60dp" |
91 | | - android:adjustViewBounds="true" |
92 | | - android:layout_gravity="bottom|center_horizontal" |
93 | | - android:alpha="0" |
94 | | - android:scaleType="centerInside" |
95 | | - android:src="@drawable/ic_verify_ok" |
96 | | - android:tag="image_ok" /> |
97 | | - </FrameLayout> |
98 | | - |
99 | | - <TextView |
100 | | - android:layout_width="wrap_content" |
101 | | - android:layout_height="wrap_content" |
102 | | - android:layout_gravity="center_horizontal" |
103 | | - app:layout_maxHeight="48dp" |
104 | | - app:layout_flexGrow="0.5" |
| 25 | + android:layout_gravity="center" |
105 | 26 | android:gravity="center" |
106 | | - android:text="@string/Snabble.PaymentStatus.step2" |
107 | | - android:textSize="15sp" /> |
108 | | - |
109 | | - <FrameLayout |
110 | | - android:id="@+id/step3" |
111 | | - android:layout_width="match_parent" |
112 | | - android:layout_height="wrap_content" |
113 | | - android:layout_gravity="center_horizontal" |
114 | | - app:layout_maxHeight="80dp" |
115 | | - app:layout_flexGrow="1"> |
116 | | - |
117 | | - <ProgressBar |
118 | | - style="?android:attr/progressBarStyleHorizontal" |
119 | | - android:layout_width="match_parent" |
120 | | - android:layout_height="wrap_content" |
121 | | - android:layout_gravity="bottom" |
122 | | - android:layout_marginBottom="4dp" |
123 | | - android:tag="progress" /> |
124 | | - |
125 | | - <androidx.appcompat.widget.AppCompatImageView |
126 | | - android:layout_width="60dp" |
127 | | - android:layout_height="60dp" |
128 | | - android:adjustViewBounds="true" |
129 | | - android:layout_gravity="bottom|center_horizontal" |
130 | | - android:scaleType="centerInside" |
131 | | - android:src="@drawable/ic_verify_3" |
132 | | - android:tag="image" /> |
133 | | - |
134 | | - <androidx.appcompat.widget.AppCompatImageView |
135 | | - android:layout_width="60dp" |
136 | | - android:layout_height="60dp" |
137 | | - android:layout_gravity="bottom|center_horizontal" |
138 | | - android:alpha="0" |
139 | | - android:scaleType="centerInside" |
140 | | - android:src="@drawable/ic_verify_ok" |
141 | | - android:tag="image_ok" /> |
142 | | - </FrameLayout> |
| 27 | + android:padding="16dp" |
| 28 | + android:text="@string/Snabble.Payment.presentCode" |
| 29 | + android:textSize="17sp" /> |
143 | 30 |
|
144 | | - <TextView |
| 31 | + <ProgressBar |
145 | 32 | android:layout_width="wrap_content" |
146 | 33 | android:layout_height="wrap_content" |
147 | | - android:layout_gravity="center_horizontal" |
148 | | - app:layout_maxHeight="48dp" |
149 | | - app:layout_flexGrow="0.5" |
150 | | - android:gravity="center" |
151 | | - android:text="@string/Snabble.PaymentStatus.step3" |
152 | | - android:textSize="15sp" /> |
153 | | - </com.google.android.flexbox.FlexboxLayout> |
154 | | - |
155 | | - <FrameLayout |
156 | | - android:id="@+id/bottom_container" |
157 | | - android:layout_width="match_parent" |
158 | | - android:layout_height="wrap_content" |
159 | | - android:layout_alignParentBottom="true"> |
| 34 | + android:layout_marginTop="16dp" |
| 35 | + android:indeterminate="true"/> |
160 | 36 |
|
161 | 37 | <TextView |
162 | | - android:id="@+id/cancel" |
| 38 | + android:id="@+id/waiting" |
163 | 39 | android:layout_width="match_parent" |
164 | 40 | android:layout_height="wrap_content" |
165 | 41 | android:layout_gravity="center" |
166 | 42 | android:gravity="center" |
167 | | - android:padding="16dp" |
168 | | - android:text="@string/Snabble.Cancel" |
169 | | - android:textColor="@color/snabble_primaryColor" |
| 43 | + android:paddingTop="4dp" |
| 44 | + android:paddingLeft="16dp" |
| 45 | + android:paddingRight="16dp" |
| 46 | + android:text="@string/Snabble.Payment.waiting" |
170 | 47 | android:textSize="17sp" /> |
| 48 | + </LinearLayout> |
171 | 49 |
|
172 | | - <io.snabble.sdk.ui.scanner.BarcodeView |
173 | | - android:id="@+id/checkout_id_code" |
174 | | - android:layout_width="80dp" |
175 | | - android:layout_height="80dp" |
176 | | - android:layout_gravity="right" |
177 | | - android:padding="8dp" |
178 | | - app:format="DATA_MATRIX" |
179 | | - tools:ignore="RtlHardcoded" /> |
180 | | - </FrameLayout> |
| 50 | + <TextView |
| 51 | + android:id="@+id/cancel" |
| 52 | + android:layout_width="match_parent" |
| 53 | + android:layout_height="wrap_content" |
| 54 | + android:layout_gravity="center" |
| 55 | + android:layout_alignParentBottom="true" |
| 56 | + android:gravity="center" |
| 57 | + android:padding="16dp" |
| 58 | + android:text="@string/Snabble.Cancel" |
| 59 | + android:textColor="@color/snabble_primaryColor" |
| 60 | + android:textSize="17sp" /> |
181 | 61 | </RelativeLayout> |
0 commit comments