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

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

Issue 2156613002: Modify PasswordEntryEditor UI to display account credentials in a user-friendly manner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add buttons Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
7 android:layout_width="match_parent" 7 android:layout_width="match_parent"
8 android:layout_height="match_parent" 8 android:layout_height="match_parent"
9 android:fillViewport="true" > 9 android:fillViewport="true" >
10 10
11 <LinearLayout 11 <LinearLayout
12 android:id="@+id/password_entry_editor_1"
12 android:layout_width="match_parent" 13 android:layout_width="match_parent"
13 android:layout_height="wrap_content" 14 android:layout_height="wrap_content"
14 android:orientation="vertical" 15 android:orientation="vertical"
15 android:title="@string/password_entry_editor_title" > 16 android:title="@string/password_entry_editor_title" >
16 17
17 <TextView 18 <TextView
18 android:id="@+id/password_entry_editor_name" 19 android:text="@string/password_entry_editor_link"
20 android:textColor="@color/google_blue_700"
19 android:layout_width="wrap_content" 21 android:layout_width="wrap_content"
20 android:layout_height="wrap_content" 22 android:layout_height="wrap_content"
21 android:layout_margin="2dp" 23 android:layout_marginTop="10dp"
24 android:layout_marginStart="15dp"
22 android:gravity="center_vertical" 25 android:gravity="center_vertical"
23 android:textAppearance="?android:attr/textAppearanceMedium" /> 26 android:textAppearance="?android:attr/textAppearanceMedium" />
24 27
25 <TextView 28 <LinearLayout
26 android:id="@+id/password_entry_editor_url"
27 android:layout_width="wrap_content" 29 android:layout_width="wrap_content"
28 android:layout_height="wrap_content" 30 android:layout_height="wrap_content"
29 android:layout_margin="2dp" 31 android:orientation="horizontal"
32 android:weightSum="1" >
33
34 <TextView
35 android:id="@+id/password_entry_editor_url"
36 android:textColor="@color/default_text_color"
37 android:layout_width="fill_parent"
38 android:layout_height="wrap_content"
39 android:layout_marginTop="10dp"
40 android:layout_marginStart="15dp"
41 android:textAppearance="?android:attr/textAppearanceMedium" />
42
43 <View
44 android:layout_width="0dp"
45 android:layout_height="0dp"
46 android:layout_weight="1" />
47
48 <ImageButton
49 style="?android:attr/buttonStyleSmall"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:layout_gravity="end"
53 android:layout_marginTop="10dp"
54 android:layout_marginEnd="15dp"
55 android:src="@drawable/clipboard_black" />
56
57 </LinearLayout>
58
59 <TextView
60 android:text="@string/password_entry_editor_username"
61 android:textColor="@color/google_blue_700"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_marginTop="5dp"
65 android:layout_marginStart="15dp"
30 android:gravity="center_vertical" 66 android:gravity="center_vertical"
31 android:textAppearance="?android:attr/textAppearanceMedium" /> 67 android:textAppearance="?android:attr/textAppearanceMedium" />
68
69 <LinearLayout
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:orientation="horizontal"
73 android:weightSum="1" >
74
75 <TextView
76 android:id="@+id/password_entry_editor_name"
77 android:textColor="@color/default_text_color"
78 android:layout_width="fill_parent"
79 android:layout_height="wrap_content"
80 android:layout_marginTop="10dp"
81 android:layout_marginStart="15dp"
82 android:textAppearance="?android:attr/textAppearanceMedium" />
83
84 <View
85 android:layout_width="0dp"
86 android:layout_height="0dp"
87 android:layout_weight="1" />
88
89 <ImageButton
90 style="?android:attr/buttonStyleSmall"
91 android:layout_width="match_parent"
92 android:layout_height="wrap_content"
93 android:layout_gravity="end"
94 android:layout_marginTop="10dp"
95 android:layout_marginEnd="15dp"
96 android:src="@drawable/clipboard_black" />
97
98 </LinearLayout>
99
100 <TextView
101 android:text="@string/password_entry_editor_password"
102 android:textColor="@color/google_blue_700"
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:layout_marginTop="5dp"
106 android:layout_marginStart="15dp"
107 android:gravity="center_vertical"
108 android:textAppearance="?android:attr/textAppearanceMedium" />
109
110 <LinearLayout
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:orientation="horizontal"
114 android:weightSum="1" >
115
116 <TextView
117 android:id="@+id/password_entry_editor_password"
118 android:textColor="@color/default_text_color"
119 android:layout_width="fill_parent"
120 android:layout_height="wrap_content"
121 android:layout_marginTop="10dp"
122 android:layout_marginStart="15dp"
123 android:textAppearance="?android:attr/textAppearanceMedium" />
124
125 <View
126 android:layout_width="0dp"
127 android:layout_height="0dp"
128 android:layout_weight="1" />
129
130 <ImageButton
131 style="?android:attr/buttonStyleSmall"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:layout_gravity="end"
135 android:layout_marginTop="10dp"
136 android:layout_marginEnd="15dp"
137 android:src="@drawable/eye_black" />
138
139 <ImageButton
140 style="?android:attr/buttonStyleSmall"
141 android:layout_width="match_parent"
142 android:layout_height="wrap_content"
143 android:layout_gravity="end"
144 android:layout_marginTop="10dp"
145 android:layout_marginEnd="15dp"
146 android:src="@drawable/clipboard_black" />
147
148 </LinearLayout>
32 149
33 <!-- Spacer to move the buttons to the bottom -->
34
35 <View
36 android:layout_width="0dp"
37 android:layout_height="0dp"
38 android:layout_weight="1"
39 android:minHeight="5dp" />
40
41 <!-- Top border for the buttons -->
42
43 <View
44 android:layout_width="match_parent"
45 android:layout_height="1dp"
46 android:background="?android:attr/dividerHorizontal" />
47
48 <!-- Save/Cancel/Delete buttons -->
49
50 <LinearLayout
51 style="?android:attr/buttonBarStyle"
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 android:divider="?android:attr/dividerVertical"
55 android:dividerPadding="0dp"
56 android:orientation="horizontal"
57 android:showDividers="middle" >
58
59 <Button
60 android:id="@+id/password_entry_editor_delete"
61 style="?android:attr/buttonBarButtonStyle"
62 android:layout_width="match_parent"
63 android:layout_height="match_parent"
64 android:layout_weight="1"
65 android:focusable="true"
66 android:text="@string/delete" />
67
68 <Button
69 android:id="@+id/password_entry_editor_cancel"
70 style="?android:attr/buttonBarButtonStyle"
71 android:layout_width="match_parent"
72 android:layout_height="match_parent"
73 android:layout_weight="1"
74 android:focusable="true"
75 android:text="@string/cancel" />
76 </LinearLayout>
77 </LinearLayout> 150 </LinearLayout>
78 151
79 </ScrollView> 152 </ScrollView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698