Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: chrome/android/java/res/layout/payments_request_editor_textview.xml

Issue 2442933003: [Payments] Show the icon for the typed in credit card in editor (Closed)
Patch Set: address comments and enable value icon before layout Created 4 years, 1 month 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 <FrameLayout 6 <FrameLayout
7 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:android="http://schemas.android.com/apk/res/android"
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 10
11 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout 11 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout
12 android:id="@+id/text_input_layout" 12 android:id="@+id/text_input_layout"
13 android:layout_width="match_parent" 13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"> 14 android:layout_height="wrap_content">
15 15
16 <AutoCompleteTextView 16 <AutoCompleteTextView
17 android:id="@+id/text_view" 17 android:id="@+id/text_view"
18 android:layout_width="match_parent" 18 android:layout_width="match_parent"
19 android:layout_height="wrap_content" 19 android:layout_height="wrap_content"
20 android:singleLine="true" 20 android:singleLine="true"
21 android:imeOptions="flagNoExtractUi" /> 21 android:imeOptions="flagNoExtractUi" />
22 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> 22 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout>
23 23
24 <ImageView 24 <LinearLayout
25 android:id="@+id/action_icon" 25 android:id="@+id/icons_layer"
26 android:layout_width="48dp" 26 android:layout_width="wrap_content"
27 android:layout_height="48dp" 27 android:layout_height="wrap_content"
28 android:padding="12dp"
29 android:layout_gravity="end" 28 android:layout_gravity="end"
30 android:contentDescription="@null" 29 android:orientation="horizontal">
31 android:visibility="gone"/> 30
31 <ImageView
32 android:id="@+id/value_icon"
33 android:layout_width="37.3dp"
gone 2016/10/26 17:22:51 We don't use a fractional DP anywhere in Clank bec
gogerald1 2016/10/27 19:01:35 Keep it according to Hwi@'s feedback
gone 2016/10/27 20:14:41 Her feedback said she was crazy when she set it :P
gogerald1 2016/10/27 21:52:14 After talking to Hwi@, the same icon will be used
34 android:layout_height="24dp"
35 android:layout_marginTop="12dp"
36 android:layout_marginBottom="12dp"
gone 2016/10/26 17:22:51 Instead of setting this margin top and bottom, can
gogerald1 2016/10/27 19:01:35 Done.
37 android:layout_marginStart="8dp"
gone 2016/10/26 17:22:51 This margin start should be on the parent layout i
gogerald1 2016/10/27 19:01:35 There might be a future situation that below actio
38 android:contentDescription="@null"
39 android:clickable="false"
40 android:visibility="gone"/>
41
42 <ImageView
43 android:id="@+id/action_icon"
44 android:layout_width="48dp"
45 android:layout_height="48dp"
46 android:padding="12dp"
47 android:contentDescription="@null"
48 android:visibility="gone"/>
49 </LinearLayout>
32 </FrameLayout> 50 </FrameLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698